|
Class: HTMLMarkup
Object
|
+--Collection
|
+--SequenceableCollection
|
+--ArrayedCollection
|
+--Array
|
+--HTMLElement
|
+--HTMLMarkup
|
+--HTMLAnchor
|
+--HTMLBullet
|
+--HTMLForm
|
+--HTMLList
|
+--HTMLScript
|
+--HTMLStyle
|
+--HTMLTable
|
+--HTMLWidget
- Package:
- stx:libhtml
- Category:
- System-Documentation
- Version:
- rev:
1.64
date: 2019/05/24 10:35:20
- user: cg
- file: HTMLMarkup.st directory: libhtml
- module: stx stc-classLibrary: libhtml
- Author:
- Claus Gittinger
Attention: Please read the warning in HTMLElement.
a generic markup element.
Provides access to the element's attributes (parameters).
Also, provides parsing support to extract those from the
elements string i.e. to read them from the remaining string
after the 'foo' in <foo ....>
HTMLParser
HTMLDocumentPainter
helpers
-
collectParametersFrom: parameterTextArg
-
FIXME: code duplication with HTML::HTMLParser
-
parameterFor: keyword from: text
-
look for the value of a keyword parameter; return
it as a string or nil, if no value given, or parameter is not present.
Notice: returns nil if parameter is there, but without a value.
-
parameterFor: keyword orLowerCase: lcKeyword from: text
-
look for the value of a keyword parameter; return
it as a string or nil, if no value given, or parameter is not present.
Notice: returns nil if parameter is there, but without a value.
initialization
-
markTypes
-
HTMLMarkup initialize
instance creation
-
classForType: aTypeSymbol
-
internal interface - return a markup elements class, given a typeSymbol
(such as #b, #pre or #'/pre')
-
for: aString
-
given a mark's string (such as 'b', 'pre' or '/pre'),
return a new markup instance
-
type: aTypeSymbol
-
internal interface - create a markup element, given a typeSymbol
(such as #b, #pre or #'/pre'), return a new markup instance
accessing
-
tag
-
return the markup's type, a symbol
-
tagName
-
for compatibility with the new HTML-tree elements
-
text
-
return the markup's text, if any.
Notice: we removed the text storing capability of the general markup
and only allow for the HTMLText to store it.
-
text: aString
-
ignored here - for protocol completeness
-
type
-
return the markup's type, a symbol
-
type: aSymbol
-
set the markup's type to aSymbol
-
type: aSymbol text: aString
-
set the markup's type to aSymbol and textInfo to aString
printing
-
printHTMLOn: aStream
-
queries
-
actionString
-
-
alignSymbol
-
return the align parameter - or nil, if there is none
-
nameString
-
-
typeString
-
-
valignSymbol
-
return the valign parameter - or nil, if there is none
-
valueString
-
testing
-
isEndTag
-
-
isFormEndElement
-
-
isHeading
-
true if the receiver is one of the <hI> tags
-
isOptionElement
-
-
isPrintable
-
answer true, if element can be printed
-
isSelectEndElement
-
-
isSelected
-
|