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 Anchoranchor/node hash.protected Dicta tag.protected Dictapplet tag.protected Dictarea tag.protected Dictarticle tag.protected Dictaside tag.protected Dictaudio tag.protected Dictb tag.protected Dictbase tag.protected Dictbdi tag.protected Dictbig tag.protected Dicta proprietary tag added by Tidy, along with tag_nobr, tag_wbr.protected Dictblockquote tag.protected Dictbody tag.protected Dictbr tag.protected Dictcanvas tag.protected Dictcaption tag.protected Dictcenter tag.protected Dictcol tag.protected Dictcolgroup tag.protected Dictdatalist tag.protected Dictdd tag.protected Dictdetails tag.protected Dictdialog tag.protected Dictdir tag.protected Dictdiv tag.protected Dictdl tag.protected Dictdt tag.protected Dictem tag.protected Dictembed tag.protected Dictfigcaption tag.protected Dictfigure tag.protected Dictfont tag.protected Dictfooter tag.protected Dictform tag.protected Dictframe tag.protected Dictframeset tag.protected Dicth1 tag.protected Dicth2 tag.protected Dicthead tag.protected Dictheader tag.protected Dicthr tag.protected Dicthtml tag.protected Dicti tag.protected Dictiframe tag.protected Dictimg tag.protected Dictinput tag.protected Dictlayer tag.protected Dictli tag.protected Dictlink tag.protected Dictlisting tag.protected Dictmain tag.protected Dictmap tag.protected Dictmark tag.protected Dictmenuitem tag.protected Dictmeta tag.protected Dictmeter tag.protected Dictnav tag.protected Dictnobr tag.protected Dictnoframes tag.protected Dictnoscript tag.protected Dictobject tag.protected Dictol tag.protected Dictoptgroup tag.protected Dictoption tag.protected Dictoutput tag.protected Dictp tag.protected Dictparam tag.protected Dictaudio tag.protected Dictpre tag.protected Dictprogress tag.protected Dicttag.protected Dictrp tag.protected Dictrt tag.protected Dictruby tag.protected Dictscript tag.protected Dictsection tag.protected Dictsmall tag.protected Dictaudio tag.protected Dictspacer tag.protected Dictspan tag.protected Dictstrong tag.protected Dictstyle tag.protected Dictsummary tag.protected Dictsvg tag.protected Dicttable tag.protected Dicttd tag.protected Dicttextarea tag.protected Dictth tag.protected Dicttime tag.protected Dicttitle tag.protected Dicttr tag.protected Dictaudio tag.protected Dictul tag.protected Dictaudio tag.protected Dictwbr tag.static final Dictdummy entry for all xml tags. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDefines a new tag.findParser(Node node) Finds a parser fo the given node.booleanFinds a tag by name.voidFree node's attributes.Installs a new tag in the tag table, or modify an existing one.Lookup a tag definition by its name.voidsetConfiguration(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
-
install
-
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
-
defineTag
Defines a new tag.- Parameters:
tagType- tag type. Can be TAGTYPE_BLOCK | TAGTYPE_EMPTY | TAGTYPE_PRE | TAGTYPE_INLINEname- tag name
-
freeAttrs
-