Package org.w3c.tidy
Class TagTable
java.lang.Object
org.w3c.tidy.TagTable
Tag dictionary node hash table.
- Version:
- $Revision$ ($Author$)
- Author:
- Dave Raggett dsr@w3.org , Andy Quick ac.quick@sympatico.ca (translation to Java), Fabrizio Giustina
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Anchor
anchor/node hash.protected Dict
a tag.protected Dict
applet tag.protected Dict
area tag.protected Dict
article tag.protected Dict
aside tag.protected Dict
audio tag.protected Dict
b tag.protected Dict
base tag.protected Dict
bdi tag.protected Dict
big tag.protected Dict
a proprietary tag added by Tidy, along with tag_nobr, tag_wbr.protected Dict
blockquote tag.protected Dict
body tag.protected Dict
br tag.protected Dict
canvas tag.protected Dict
caption tag.protected Dict
center tag.protected Dict
col tag.protected Dict
colgroup tag.protected Dict
datalist tag.protected Dict
dd tag.protected Dict
details tag.protected Dict
dialog tag.protected Dict
dir tag.protected Dict
div tag.protected Dict
dl tag.protected Dict
dt tag.protected Dict
em tag.protected Dict
embed tag.protected Dict
figcaption tag.protected Dict
figure tag.protected Dict
font tag.protected Dict
footer tag.protected Dict
form tag.protected Dict
frame tag.protected Dict
frameset tag.protected Dict
h1 tag.protected Dict
h2 tag.protected Dict
head tag.protected Dict
header tag.protected Dict
hr tag.protected Dict
html tag.protected Dict
i tag.protected Dict
iframe tag.protected Dict
img tag.protected Dict
input tag.protected Dict
layer tag.protected Dict
li tag.protected Dict
link tag.protected Dict
listing tag.protected Dict
main tag.protected Dict
map tag.protected Dict
mark tag.protected Dict
menuitem tag.protected Dict
meta tag.protected Dict
meter tag.protected Dict
nav tag.protected Dict
nobr tag.protected Dict
noframes tag.protected Dict
noscript tag.protected Dict
object tag.protected Dict
ol tag.protected Dict
optgroup tag.protected Dict
option tag.protected Dict
output tag.protected Dict
p tag.protected Dict
param tag.protected Dict
audio tag.protected Dict
pre tag.protected Dict
progress tag.protected Dict
tag.protected Dict
rp tag.protected Dict
rt tag.protected Dict
ruby tag.protected Dict
script tag.protected Dict
section tag.protected Dict
small tag.protected Dict
audio tag.protected Dict
spacer tag.protected Dict
span tag.protected Dict
strong tag.protected Dict
style tag.protected Dict
summary tag.protected Dict
svg tag.protected Dict
table tag.protected Dict
td tag.protected Dict
textarea tag.protected Dict
th tag.protected Dict
time tag.protected Dict
title tag.protected Dict
tr tag.protected Dict
audio tag.protected Dict
ul tag.protected Dict
audio tag.protected Dict
wbr tag.static final Dict
dummy entry for all xml tags. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Defines a new tag.findParser
(Node node) Finds a parser fo the given node.boolean
Finds a tag by name.void
Free node's attributes.Installs a new tag in the tag table, or modify an existing one.Lookup a tag definition by its name.void
setConfiguration
(Configuration configuration) Setter for the current configuration instance.
-
Field Details
-
XML_TAGS
dummy entry for all xml tags. -
tagHtml
html tag. -
tagHead
head tag. -
tagBody
body tag. -
tagFrameset
frameset tag. -
tagFrame
frame tag. -
tagIframe
iframe tag. -
tagNoframes
noframes tag. -
tagMeta
meta tag. -
tagTitle
title tag. -
tagBase
base tag. -
tagHr
hr tag. -
tagPre
pre tag. -
tagListing
listing tag. -
tagH1
h1 tag. -
tagH2
h2 tag. -
tagP
p tag. -
tagUl
ul tag. -
tagOl
ol tag. -
tagDir
dir tag. -
tagLi
li tag. -
tagDt
dt tag. -
tagDd
dd tag. -
tagDl
dl tag. -
tagTd
td tag. -
tagTh
th tag. -
tagTr
tr tag. -
tagCol
col tag. -
tagColgroup
colgroup tag. -
tagBr
br tag. -
tagA
a tag. -
tagLink
link tag. -
tagB
b tag. -
tagI
i tag. -
tagStrong
strong tag. -
tagMark
mark tag. -
tagEm
em tag. -
tagBig
big tag. -
tagSmall
small tag. -
tagParam
param tag. -
tagOption
option tag. -
tagOptgroup
optgroup tag. -
tagImg
img tag. -
tagMap
map tag. -
tagArea
area tag. -
tagNobr
nobr tag. -
tagFont
font tag. -
tagSpacer
spacer tag. -
tagLayer
layer tag. -
tagCenter
center tag. -
tagStyle
style tag. -
tagScript
script tag. -
tagNoscript
noscript tag. -
tagTable
table tag. -
tagCaption
caption tag. -
tagForm
form tag. -
tagTextarea
textarea tag. -
tagBlockquote
blockquote tag. -
tagApplet
applet tag. -
tagObject
object tag. -
tagDiv
div tag. -
tagSpan
span tag. -
tagInput
input tag. -
tagQ
tag. -
tagArticle
article tag. -
tagAside
aside tag. -
tagBdi
bdi tag. Inline Right-to-Left text -
tagDetails
details tag. -
tagDialog
dialog tag. -
tagFigcaption
figcaption tag. -
tagFigure
figure tag. -
tagHeader
header tag. -
tagMain
main tag. -
tagMenuitem
menuitem tag. -
tagMeter
meter tag. -
tagProgress
progress tag. -
tagRp
rp tag. Defines what to show in browsers that do not support ruby annotations -
tagRt
rt tag. Defines an explanation/pronunciation of characters (for East Asian typography) -
tagRuby
ruby tag. Defines a ruby annotation (for East Asian typography) -
tagSection
section tag. Defines a section in the document -
tagSummary
summary tag. Defines a visible heading for a <details> element -
tagTime
time tag. Defines a date/time -
tagWbr
wbr tag. Defines a possible line-break -
tagDatalist
datalist tag. Defines pre-defined options for input controls -
tagOutput
output tag. -
tagSvg
svg tag. Draw scalable vector graphics -
tagCanvas
canvas tag. Draw graphics, on the fly, via scripting (usually JavaScript) -
tagAudio
audio tag. Defines sound content -
tagEmbed
embed tag. Defines containers for external applications (like plug-ins) -
tagSource
audio tag. Defines sources for <video> and <audio> -
tagTrack
audio tag. Defines tracks for <video> and <audio> -
tagVideo
audio tag. Defines video or movie content -
tagPicture
audio tag. Defines video or movie content -
tagBlink
a proprietary tag added by Tidy, along with tag_nobr, tag_wbr. -
anchorList
anchor/node hash.
-
-
Constructor Details
-
TagTable
protected TagTable()Instantiates a new tag table with known tags.
-
-
Method Details
-
setConfiguration
Setter for the current configuration instance.- Parameters:
configuration
- configuration instance
-
lookup
Lookup a tag definition by its name.- Parameters:
name
- tag name- Returns:
- tag definition (Dict)
-
install
Installs a new tag in the tag table, or modify an existing one.- Parameters:
dict
- tag definition- Returns:
- installed Dict instance
-
findTag
Finds a tag by name.- Parameters:
node
- Node to find. If the element is found the tag property of node will be set.- Returns:
- true if the tag is found, false otherwise
-
findParser
Finds a parser fo the given node.- Parameters:
node
- Node- Returns:
- parser for the node
-
defineTag
Defines a new tag.- Parameters:
tagType
- tag type. Can be TAGTYPE_BLOCK | TAGTYPE_EMPTY | TAGTYPE_PRE | TAGTYPE_INLINEname
- tag name
-
freeAttrs
Free node's attributes.- Parameters:
node
- Node
-