eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTMLDocumentInterpreter':

Home

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

Class: HTMLDocumentInterpreter


Inheritance:

   Object
   |
   +--HTMLDocumentInterpreter
      |
      +--HTMLDocumentPainter

Package:
stx:libhtml
Category:
System-Documentation
Version:
rev: 1.36 date: 2023/05/15 11:14:08
user: stefan
file: HTMLDocumentInterpreter.st directory: libhtml
module: stx stc-classLibrary: libhtml

Description:


Please read the Caveat & Warning in HTMLDocumentPainter.

An abstract class to walk through a list of HTML elements
(i.e. the document) and perform an action on each
(by sending self-messages named after the elements tag).

Not useful by its own, but provides a framework for
both HTML displayers and processors 
(i.e. must be subclassed).

copyright

COPYRIGHT (c) 1996 by Claus Gittinger All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Class protocol:

initialization
o  initializeSelectorTable
SelectorTable := nil.
HTMLDocumentInterpreter initialize

o  selectorTable


Instance protocol:

elements-document
o  base
intentionally left blank - to be redefined by concrete class (if required)

o  body
intentionally left blank - to be redefined by concrete class (if required)

o  bodyEnd
intentionally left blank - to be redefined by concrete class (if required)

o  frame
intentionally left blank - to be redefined by concrete class (if required)

o  frameEnd
intentionally left blank - to be redefined by concrete class (if required)

o  frameset
intentionally left blank - to be redefined by concrete class (if required)

o  framesetEnd
intentionally left blank - to be redefined by concrete class (if required)

o  head
intentionally left blank - to be redefined by concrete class (if required)

o  headEnd
intentionally left blank - to be redefined by concrete class (if required)

o  html
intentionally left blank - to be redefined by concrete class (if required)

o  htmlEnd
intentionally left blank - to be redefined by concrete class (if required)

o  link
intentionally left blank - to be redefined by concrete class (if required)

o  meta
intentionally left blank - to be redefined by concrete class (if required)

o  style
intentionally left blank - to be redefined by concrete class (if required)

o  styleEnd
intentionally left blank - to be redefined by concrete class (if required)

o  title
intentionally left blank - to be redefined by concrete class (if required)

o  titleEnd
intentionally left blank - to be redefined by concrete class (if required)

elements-forms
o  form
intentionally left blank - to be redefined by concrete class (if required)

o  formEnd
intentionally left blank - to be redefined by concrete class (if required)

o  input
intentionally left blank - to be redefined by concrete class (if required)

o  option
intentionally left blank - to be redefined by concrete class (if required)

o  optionEnd
intentionally left blank - to be redefined by concrete class (if required)

o  select
intentionally left blank - to be redefined by concrete class (if required)

o  selectEnd
intentionally left blank - to be redefined by concrete class (if required)

o  textarea
intentionally left blank - to be redefined by concrete class (if required)

o  textareaEnd
intentionally left blank - to be redefined by concrete class (if required)

elements-lists
o  dd
intentionally left blank - to be redefined by concrete class (if required)

o  ddEnd
intentionally left blank - to be redefined by concrete class (if required)

o  dir
intentionally left blank - to be redefined by concrete class (if required)

o  dirEnd
intentionally left blank - to be redefined by concrete class (if required)

o  dl
intentionally left blank - to be redefined by concrete class (if required)

o  dlEnd
intentionally left blank - to be redefined by concrete class (if required)

o  dt
intentionally left blank - to be redefined by concrete class (if required)

o  dtEnd
intentionally left blank - to be redefined by concrete class (if required)

o  li
intentionally left blank - to be redefined by concrete class (if required)

o  liEnd
intentionally left blank - to be redefined by concrete class (if required)

o  menu
intentionally left blank - to be redefined by concrete class (if required)

o  menuEnd
intentionally left blank - to be redefined by concrete class (if required)

o  ol
intentionally left blank - to be redefined by concrete class (if required)

o  olEnd
intentionally left blank - to be redefined by concrete class (if required)

o  ul
intentionally left blank - to be redefined by concrete class (if required)

o  ulEnd
intentionally left blank - to be redefined by concrete class (if required)

elements-pseudo tags
o  internalMathFont
intentionally left blank - to be redefined by concrete class (if required)

o  internalMathFontEnd
intentionally left blank - to be redefined by concrete class (if required)

elements-special
o  a
intentionally left blank - to be redefined by concrete class (if required)

o  aEnd
intentionally left blank - to be redefined by concrete class (if required)

o  app
intentionally left blank - to be redefined by concrete class (if required)

o  appEnd
intentionally left blank - to be redefined by concrete class (if required)

o  applet
intentionally left blank - to be redefined by concrete class (if required)

o  appletEnd
intentionally left blank - to be redefined by concrete class (if required)

o  area
intentionally left blank - to be redefined by concrete class (if required)

o  bgsound
intentionally left blank - to be redefined by concrete class (if required)

o  img
intentionally left blank - to be redefined by concrete class (if required)

o  imgEnd

o  jwssuperapplet
intentionally left blank - to be redefined by concrete class (if required)

o  jwssuperappletEnd
intentionally left blank - to be redefined by concrete class (if required)

o  map
intentionally left blank - to be redefined by concrete class (if required)

o  mapEnd
intentionally left blank - to be redefined by concrete class (if required)

o  param
intentionally left blank - to be redefined by concrete class (if required)

o  paramEnd
intentionally left blank - to be redefined by concrete class (if required)

o  script
intentionally left blank - to be redefined by concrete class (if required)

o  scriptEnd
intentionally left blank - to be redefined by concrete class (if required)

o  specialMarkup

elements-structure
o  br
intentionally left blank - to be redefined by concrete class (if required)

o  brEnd
intentionally left blank - to be redefined by concrete class (if required)

o  div
intentionally left blank - to be redefined by concrete class (if required)

o  divEnd
intentionally left blank - to be redefined by concrete class (if required)

o  h1
intentionally left blank - to be redefined by concrete class (if required)

o  h1End
intentionally left blank - to be redefined by concrete class (if required)

o  h2
intentionally left blank - to be redefined by concrete class (if required)

o  h2End
intentionally left blank - to be redefined by concrete class (if required)

o  h3
intentionally left blank - to be redefined by concrete class (if required)

o  h3End
intentionally left blank - to be redefined by concrete class (if required)

o  h4
intentionally left blank - to be redefined by concrete class (if required)

o  h4End
intentionally left blank - to be redefined by concrete class (if required)

o  h5
intentionally left blank - to be redefined by concrete class (if required)

o  h5End
intentionally left blank - to be redefined by concrete class (if required)

o  h6
intentionally left blank - to be redefined by concrete class (if required)

o  h6End
intentionally left blank - to be redefined by concrete class (if required)

o  h7
intentionally left blank - to be redefined by concrete class (if required)

o  h7End
intentionally left blank - to be redefined by concrete class (if required)

o  h8
intentionally left blank - to be redefined by concrete class (if required)

o  h8End
intentionally left blank - to be redefined by concrete class (if required)

o  h9
intentionally left blank - to be redefined by concrete class (if required)

o  h9End
intentionally left blank - to be redefined by concrete class (if required)

o  hr
intentionally left blank - to be redefined by concrete class (if required)

o  nobr
intentionally left blank - to be redefined by concrete class (if required)

o  nobrEnd
intentionally left blank - to be redefined by concrete class (if required)

o  p
intentionally left blank - to be redefined by concrete class (if required)

o  pEnd
intentionally left blank - to be redefined by concrete class (if required)

o  plain
intentionally left blank - to be redefined by concrete class (if required)

o  plainEnd
intentionally left blank - to be redefined by concrete class (if required)

o  pre
intentionally left blank - to be redefined by concrete class (if required)

o  preEnd
intentionally left blank - to be redefined by concrete class (if required)

o  tab
intentionally left blank - to be redefined by concrete class (if required)

o  wbr
intentionally left blank - to be redefined by concrete class (if required)

o  xmp
intentionally left blank - to be redefined by concrete class (if required)

o  xmpEnd
intentionally left blank - to be redefined by concrete class (if required)

elements-style
o  abbrev
intentionally left blank - to be redefined by concrete class (if required)

o  abbrevEnd
intentionally left blank - to be redefined by concrete class (if required)

o  acronym
intentionally left blank - to be redefined by concrete class (if required)

o  acronymEnd
intentionally left blank - to be redefined by concrete class (if required)

o  address
intentionally left blank - to be redefined by concrete class (if required)

o  addressEnd
intentionally left blank - to be redefined by concrete class (if required)

o  au
intentionally left blank - to be redefined by concrete class (if required)

o  auEnd
intentionally left blank - to be redefined by concrete class (if required)

o  blink
intentionally left blank - to be redefined by concrete class (if required)

o  blinkEnd
intentionally left blank - to be redefined by concrete class (if required)

o  blockquote
intentionally left blank - to be redefined by concrete class (if required)

o  blockquoteEnd
intentionally left blank - to be redefined by concrete class (if required)

o  center
intentionally left blank - to be redefined by concrete class (if required)

o  centerEnd
intentionally left blank - to be redefined by concrete class (if required)

o  cite
intentionally left blank - to be redefined by concrete class (if required)

o  citeEnd
intentionally left blank - to be redefined by concrete class (if required)

o  code
intentionally left blank - to be redefined by concrete class (if required)

o  codeEnd
intentionally left blank - to be redefined by concrete class (if required)

o  del
intentionally left blank - to be redefined by concrete class (if required)

o  delEnd
intentionally left blank - to be redefined by concrete class (if required)

o  dfn
intentionally left blank - to be redefined by concrete class (if required)

o  dfnEnd
intentionally left blank - to be redefined by concrete class (if required)

o  em
intentionally left blank - to be redefined by concrete class (if required)

o  emEnd
intentionally left blank - to be redefined by concrete class (if required)

o  font
intentionally left blank - to be redefined by concrete class (if required)

o  fontEnd
intentionally left blank - to be redefined by concrete class (if required)

o  ins
intentionally left blank - to be redefined by concrete class (if required)

o  insEnd
intentionally left blank - to be redefined by concrete class (if required)

o  kbd
intentionally left blank - to be redefined by concrete class (if required)

o  kbdEnd
intentionally left blank - to be redefined by concrete class (if required)

o  lang
intentionally left blank - to be redefined by concrete class (if required)

o  langEnd
intentionally left blank - to be redefined by concrete class (if required)

o  person
intentionally left blank - to be redefined by concrete class (if required)

o  personEnd
intentionally left blank - to be redefined by concrete class (if required)

o  q
intentionally left blank - to be redefined by concrete class (if required)

o  qEnd
intentionally left blank - to be redefined by concrete class (if required)

o  s
intentionally left blank - to be redefined by concrete class (if required)

o  sEnd
intentionally left blank - to be redefined by concrete class (if required)

o  samp
intentionally left blank - to be redefined by concrete class (if required)

o  sampEnd
intentionally left blank - to be redefined by concrete class (if required)

o  site
intentionally left blank - to be redefined by concrete class (if required)

o  siteEnd
intentionally left blank - to be redefined by concrete class (if required)

o  span
intentionally left blank - to be redefined by concrete class (if required)

o  spanEnd
intentionally left blank - to be redefined by concrete class (if required)

o  strike
intentionally left blank - to be redefined by concrete class (if required)

o  strikeEnd
intentionally left blank - to be redefined by concrete class (if required)

o  strong
intentionally left blank - to be redefined by concrete class (if required)

o  strongEnd
intentionally left blank - to be redefined by concrete class (if required)

o  var
intentionally left blank - to be redefined by concrete class (if required)

o  varEnd
intentionally left blank - to be redefined by concrete class (if required)

elements-style physical
o  b
intentionally left blank - to be redefined by concrete class (if required)

o  bEnd
intentionally left blank - to be redefined by concrete class (if required)

o  big
intentionally left blank - to be redefined by concrete class (if required)

o  bigEnd
intentionally left blank - to be redefined by concrete class (if required)

o  i
intentionally left blank - to be redefined by concrete class (if required)

o  iEnd
intentionally left blank - to be redefined by concrete class (if required)

o  small
intentionally left blank - to be redefined by concrete class (if required)

o  smallEnd
intentionally left blank - to be redefined by concrete class (if required)

o  sub
intentionally left blank - to be redefined by concrete class (if required)

o  subEnd
intentionally left blank - to be redefined by concrete class (if required)

o  sup
intentionally left blank - to be redefined by concrete class (if required)

o  supEnd
intentionally left blank - to be redefined by concrete class (if required)

o  tt
intentionally left blank - to be redefined by concrete class (if required)

o  ttEnd
intentionally left blank - to be redefined by concrete class (if required)

o  u
intentionally left blank - to be redefined by concrete class (if required)

o  uEnd
intentionally left blank - to be redefined by concrete class (if required)

elements-tables
o  caption
intentionally left blank - to be redefined by concrete class (if required)

o  captionEnd
intentionally left blank - to be redefined by concrete class (if required)

o  col
intentionally left blank - to be redefined by concrete class (if required)

o  colEnd
intentionally left blank - to be redefined by concrete class (if required)

o  table
intentionally left blank - to be redefined by concrete class (if required)

o  tableEnd
intentionally left blank - to be redefined by concrete class (if required)

o  tbody
intentionally left blank - to be redefined by concrete class (if required)

o  tbodyEnd
intentionally left blank - to be redefined by concrete class (if required)

o  td
intentionally left blank - to be redefined by concrete class (if required)

o  tdEnd
intentionally left blank - to be redefined by concrete class (if required)

o  th
intentionally left blank - to be redefined by concrete class (if required)

o  thEnd
intentionally left blank - to be redefined by concrete class (if required)

o  tr
intentionally left blank - to be redefined by concrete class (if required)

o  trEnd
intentionally left blank - to be redefined by concrete class (if required)

error handling
o  doesNotUnderstand: aMessage
(comment from inherited method)
this message is sent by the runtime system (VM) when
a message is not understood by some object (i.e. there
is no method for that selector). The original message has
been packed into aMessage (i.e. the receiver, selector and
any arguments) and the original receiver is then sent the
#doesNotUnderstand: message.
Here, we raise another signal which usually enters the debugger.
You can of course redefine #doesNotUnderstand: in your classes
to implement message delegation,
or handle the MessageNotUnderstood exception gracefully.

private
o  processFrom: firstElement while: aBlock
process elements starting with firstElement, while aBlock
returns true. Should be called from a saveExcursion block.

processing
o  process: aDocument

queries
o  elementsDo: aBlock
enumerate the html elements

o  elementsWithType: typeOrNil do: aBlock
enumerate the html elements



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:39:45 GMT