|
Class: HTMLElement
Object
|
+--Collection
|
+--SequenceableCollection
|
+--ArrayedCollection
|
+--Array
|
+--HTMLElement
|
+--HTMLMarkup
|
+--HTMLText
- Package:
- stx:libhtml
- Category:
- System-Documentation
- Version:
- rev:
1.34
date: 2019/05/29 13:22:39
- user: cg
- file: HTMLElement.st directory: libhtml
- module: stx stc-classLibrary: libhtml
- Author:
- Claus Gittinger
Notice & Warning:
this HTML markup framework and the corresponding parser
started as a quick hack (in the 90's) when replacing a buggy mosaic
X-widget with a Smalltalk written HTML viewer.
Its goals were to be fast enough for typical uses, to be not too memory hungry
and to provide the functionality required to display simple help documents.
It was NOT meant to become a full featured web-browser replacement.
The viewer and htmlElement framework are still in use as the document viewer inside ST/X,
and supported to the extent that simple online help documents and html-tooltips are to be displayed.
However, there are no plans to further enhance or spend other time on its maintenance.
If you need more sophisticated html/dom/doc functionality, you may want to use either
the HTMLTree framework or one of the free frameworks found in the goodies folder.
a generic element (both TAGS and text-fragments).
This is an abstract class, providing support to handle
a document as a linked list of elements..
HTMLParser
HTMLDocumentPainter
cleanup
-
lowSpaceCleanup
-
cleanup in low-memory situations
helpers
-
colorForSpec: aSpec
-
returns the color for a spec or nil
instance release
-
releaseColors
-
release cached colors
accessing
-
bounds
-
return bounds; a rectangle or rectangle collection
-
bounds: aRectangleOrRectangleCollection
-
set bounds; a rectangle or rectangle collection
-
colorParameter: keyword
-
return the color of a color parameter - or nil, if there is none
-
hasParameterFor: keyword
-
Modified (format): / 19-11-2016 / 15:48:22 / cg
-
id
-
-
name
-
-
next
-
-
next: something
-
-
numericParameterFor: keyword
-
return the value of a number parameter - or nil, if there is none
-
numericParameterFor: keyword default: default
-
return the value of a number parameter - or the default, if there is none
-
parameterFor: keyword
-
-
parameterFor: keyword put: newValue
-
-
parameterSlotIndexFor: keyword
-
-
parent
-
-
parent: something
-
-
sourcePosition
-
-
sourcePosition: something
-
-
styleParameterFor: keyword
-
limited style= value extraction.
Does not handle all cases (currently); no escaped quotes, for example.
Just a quick hack to allow for <img style=''width:w; height:h''> to be parsed.
-
tag
-
return the markup's tag, a symbol or nil
-
tagName
-
-
type
-
return the markup's type, a symbol or nil
enumerating
-
do: aBlock
-
evaluate aBlock for myself and all remaining elements
-
printElementsDo: aBlock
-
redefined to show only the attributes contained within the array
printing
-
displayOn: aStream
-
(comment from inherited method)
print a representation of the receiver on aGCOrStream for display in inspectors etc.
-
inspectorValueStringInListFor: anInspector
-
returns a string to be shown in the inspector's selection list
-
printHTMLOn: aStream
-
-
printOn: aStream
-
(comment from inherited method)
append a printed representation of the receiver to aStream
queries
-
boundsTop
-
testing
-
isAnchor
-
-
isEndTag
-
-
isFormElement
-
-
isFormEndElement
-
-
isHead
-
-
isHeading
-
-
isImageElement
-
-
isInputElement
-
-
isOptionElement
-
-
isSelectElement
-
-
isSelectEndElement
-
-
isTextElement
-
|