eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTMLMarkup':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: HTMLMarkup


Inheritance:

   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

Description:


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 ....>


Related information:

    HTMLParser
    HTMLDocumentPainter

Class protocol:

helpers
o  collectParametersFrom: parameterTextArg
FIXME: code duplication with HTML::HTMLParser

o  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.

o  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
o  markTypes
HTMLMarkup initialize

instance creation
o  classForType: aTypeSymbol
internal interface - return a markup elements class, given a typeSymbol
(such as #b, #pre or #'/pre')

o  for: aString
given a mark's string (such as 'b', 'pre' or '/pre'),
return a new markup instance

o  type: aTypeSymbol
internal interface - create a markup element, given a typeSymbol
(such as #b, #pre or #'/pre'), return a new markup instance


Instance protocol:

accessing
o  tag
return the markup's type, a symbol

o  tagName
for compatibility with the new HTML-tree elements

o  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.

o  text: aString
ignored here - for protocol completeness

o  type
return the markup's type, a symbol

o  type: aSymbol
set the markup's type to aSymbol

o  type: aSymbol text: aString
set the markup's type to aSymbol and textInfo to aString

printing
o  printHTMLOn: aStream

queries
o  actionString

o  alignSymbol
return the align parameter - or nil, if there is none

o  nameString

o  typeString

o  valignSymbol
return the valign parameter - or nil, if there is none

o  valueString

testing
o  isEndTag

o  isFormEndElement

o  isHeading
true if the receiver is one of the <hI> tags

o  isOptionElement

o  isPrintable
answer true, if element can be printed

o  isSelectEndElement

o  isSelected



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 19 Mar 2024 09:33:04 GMT