|
Class: HTMLDocumentInterpreter
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
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).
copyrightCOPYRIGHT (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.
initialization
-
initializeSelectorTable
-
SelectorTable := nil.
HTMLDocumentInterpreter initialize
-
selectorTable
-
elements-document
-
base
-
intentionally left blank - to be redefined by concrete class (if required)
-
body
-
intentionally left blank - to be redefined by concrete class (if required)
-
bodyEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
frame
-
intentionally left blank - to be redefined by concrete class (if required)
-
frameEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
frameset
-
intentionally left blank - to be redefined by concrete class (if required)
-
framesetEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
head
-
intentionally left blank - to be redefined by concrete class (if required)
-
headEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
html
-
intentionally left blank - to be redefined by concrete class (if required)
-
htmlEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
link
-
intentionally left blank - to be redefined by concrete class (if required)
-
meta
-
intentionally left blank - to be redefined by concrete class (if required)
-
style
-
intentionally left blank - to be redefined by concrete class (if required)
-
styleEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
title
-
intentionally left blank - to be redefined by concrete class (if required)
-
titleEnd
-
intentionally left blank - to be redefined by concrete class (if required)
elements-forms
-
form
-
intentionally left blank - to be redefined by concrete class (if required)
-
formEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
input
-
intentionally left blank - to be redefined by concrete class (if required)
-
option
-
intentionally left blank - to be redefined by concrete class (if required)
-
optionEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
select
-
intentionally left blank - to be redefined by concrete class (if required)
-
selectEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
textarea
-
intentionally left blank - to be redefined by concrete class (if required)
-
textareaEnd
-
intentionally left blank - to be redefined by concrete class (if required)
elements-lists
-
dd
-
intentionally left blank - to be redefined by concrete class (if required)
-
ddEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
dir
-
intentionally left blank - to be redefined by concrete class (if required)
-
dirEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
dl
-
intentionally left blank - to be redefined by concrete class (if required)
-
dlEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
dt
-
intentionally left blank - to be redefined by concrete class (if required)
-
dtEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
li
-
intentionally left blank - to be redefined by concrete class (if required)
-
liEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
menu
-
intentionally left blank - to be redefined by concrete class (if required)
-
menuEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
ol
-
intentionally left blank - to be redefined by concrete class (if required)
-
olEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
ul
-
intentionally left blank - to be redefined by concrete class (if required)
-
ulEnd
-
intentionally left blank - to be redefined by concrete class (if required)
elements-pseudo tags
-
internalMathFont
-
intentionally left blank - to be redefined by concrete class (if required)
-
internalMathFontEnd
-
intentionally left blank - to be redefined by concrete class (if required)
elements-special
-
a
-
intentionally left blank - to be redefined by concrete class (if required)
-
aEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
app
-
intentionally left blank - to be redefined by concrete class (if required)
-
appEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
applet
-
intentionally left blank - to be redefined by concrete class (if required)
-
appletEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
area
-
intentionally left blank - to be redefined by concrete class (if required)
-
bgsound
-
intentionally left blank - to be redefined by concrete class (if required)
-
img
-
intentionally left blank - to be redefined by concrete class (if required)
-
imgEnd
-
-
jwssuperapplet
-
intentionally left blank - to be redefined by concrete class (if required)
-
jwssuperappletEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
map
-
intentionally left blank - to be redefined by concrete class (if required)
-
mapEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
param
-
intentionally left blank - to be redefined by concrete class (if required)
-
paramEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
script
-
intentionally left blank - to be redefined by concrete class (if required)
-
scriptEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
specialMarkup
-
elements-structure
-
br
-
intentionally left blank - to be redefined by concrete class (if required)
-
brEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
div
-
intentionally left blank - to be redefined by concrete class (if required)
-
divEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
h1
-
intentionally left blank - to be redefined by concrete class (if required)
-
h1End
-
intentionally left blank - to be redefined by concrete class (if required)
-
h2
-
intentionally left blank - to be redefined by concrete class (if required)
-
h2End
-
intentionally left blank - to be redefined by concrete class (if required)
-
h3
-
intentionally left blank - to be redefined by concrete class (if required)
-
h3End
-
intentionally left blank - to be redefined by concrete class (if required)
-
h4
-
intentionally left blank - to be redefined by concrete class (if required)
-
h4End
-
intentionally left blank - to be redefined by concrete class (if required)
-
h5
-
intentionally left blank - to be redefined by concrete class (if required)
-
h5End
-
intentionally left blank - to be redefined by concrete class (if required)
-
h6
-
intentionally left blank - to be redefined by concrete class (if required)
-
h6End
-
intentionally left blank - to be redefined by concrete class (if required)
-
h7
-
intentionally left blank - to be redefined by concrete class (if required)
-
h7End
-
intentionally left blank - to be redefined by concrete class (if required)
-
h8
-
intentionally left blank - to be redefined by concrete class (if required)
-
h8End
-
intentionally left blank - to be redefined by concrete class (if required)
-
h9
-
intentionally left blank - to be redefined by concrete class (if required)
-
h9End
-
intentionally left blank - to be redefined by concrete class (if required)
-
hr
-
intentionally left blank - to be redefined by concrete class (if required)
-
nobr
-
intentionally left blank - to be redefined by concrete class (if required)
-
nobrEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
p
-
intentionally left blank - to be redefined by concrete class (if required)
-
pEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
plain
-
intentionally left blank - to be redefined by concrete class (if required)
-
plainEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
pre
-
intentionally left blank - to be redefined by concrete class (if required)
-
preEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
tab
-
intentionally left blank - to be redefined by concrete class (if required)
-
wbr
-
intentionally left blank - to be redefined by concrete class (if required)
-
xmp
-
intentionally left blank - to be redefined by concrete class (if required)
-
xmpEnd
-
intentionally left blank - to be redefined by concrete class (if required)
elements-style
-
abbrev
-
intentionally left blank - to be redefined by concrete class (if required)
-
abbrevEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
acronym
-
intentionally left blank - to be redefined by concrete class (if required)
-
acronymEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
address
-
intentionally left blank - to be redefined by concrete class (if required)
-
addressEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
au
-
intentionally left blank - to be redefined by concrete class (if required)
-
auEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
blink
-
intentionally left blank - to be redefined by concrete class (if required)
-
blinkEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
blockquote
-
intentionally left blank - to be redefined by concrete class (if required)
-
blockquoteEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
center
-
intentionally left blank - to be redefined by concrete class (if required)
-
centerEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
cite
-
intentionally left blank - to be redefined by concrete class (if required)
-
citeEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
code
-
intentionally left blank - to be redefined by concrete class (if required)
-
codeEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
del
-
intentionally left blank - to be redefined by concrete class (if required)
-
delEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
dfn
-
intentionally left blank - to be redefined by concrete class (if required)
-
dfnEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
em
-
intentionally left blank - to be redefined by concrete class (if required)
-
emEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
font
-
intentionally left blank - to be redefined by concrete class (if required)
-
fontEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
ins
-
intentionally left blank - to be redefined by concrete class (if required)
-
insEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
kbd
-
intentionally left blank - to be redefined by concrete class (if required)
-
kbdEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
lang
-
intentionally left blank - to be redefined by concrete class (if required)
-
langEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
person
-
intentionally left blank - to be redefined by concrete class (if required)
-
personEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
q
-
intentionally left blank - to be redefined by concrete class (if required)
-
qEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
s
-
intentionally left blank - to be redefined by concrete class (if required)
-
sEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
samp
-
intentionally left blank - to be redefined by concrete class (if required)
-
sampEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
site
-
intentionally left blank - to be redefined by concrete class (if required)
-
siteEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
span
-
intentionally left blank - to be redefined by concrete class (if required)
-
spanEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
strike
-
intentionally left blank - to be redefined by concrete class (if required)
-
strikeEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
strong
-
intentionally left blank - to be redefined by concrete class (if required)
-
strongEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
var
-
intentionally left blank - to be redefined by concrete class (if required)
-
varEnd
-
intentionally left blank - to be redefined by concrete class (if required)
elements-style physical
-
b
-
intentionally left blank - to be redefined by concrete class (if required)
-
bEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
big
-
intentionally left blank - to be redefined by concrete class (if required)
-
bigEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
i
-
intentionally left blank - to be redefined by concrete class (if required)
-
iEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
small
-
intentionally left blank - to be redefined by concrete class (if required)
-
smallEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
sub
-
intentionally left blank - to be redefined by concrete class (if required)
-
subEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
sup
-
intentionally left blank - to be redefined by concrete class (if required)
-
supEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
tt
-
intentionally left blank - to be redefined by concrete class (if required)
-
ttEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
u
-
intentionally left blank - to be redefined by concrete class (if required)
-
uEnd
-
intentionally left blank - to be redefined by concrete class (if required)
elements-tables
-
caption
-
intentionally left blank - to be redefined by concrete class (if required)
-
captionEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
col
-
intentionally left blank - to be redefined by concrete class (if required)
-
colEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
table
-
intentionally left blank - to be redefined by concrete class (if required)
-
tableEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
tbody
-
intentionally left blank - to be redefined by concrete class (if required)
-
tbodyEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
td
-
intentionally left blank - to be redefined by concrete class (if required)
-
tdEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
th
-
intentionally left blank - to be redefined by concrete class (if required)
-
thEnd
-
intentionally left blank - to be redefined by concrete class (if required)
-
tr
-
intentionally left blank - to be redefined by concrete class (if required)
-
trEnd
-
intentionally left blank - to be redefined by concrete class (if required)
error handling
-
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
-
processFrom: firstElement while: aBlock
-
process elements starting with firstElement, while aBlock
returns true. Should be called from a saveExcursion block.
processing
-
process: aDocument
-
queries
-
elementsDo: aBlock
-
enumerate the html elements
-
elementsWithType: typeOrNil do: aBlock
-
enumerate the html elements
|