New Layout: HTML Tag Handling Chart
Authors: Rick GessnerUpdated: 23 October 1998
[eds. note: This document extracted from email. Original message follows]
During a recent tag handling fest in the parser, it occured to me that we don't have a "how to handle tag x"
document. So I've created a the following table of HTML tags and how we handle them in the parser. I needed this
for debugging purposes, and others may benefit from it during testing.
Anyway, it's a work in progress, so send me issues.
-Rick
A
|
Parent |
Parent |
Content |
Content |
a |
|
|
|
|
abbr |
|
|
|
|
acronym |
|
|
|
|
address |
|
|
||
applet |
|
|
|
|
area | <map> |
B
|
Parent |
Parent |
Content |
Content |
Content |
|
b |
|
|
|
|||
base | <head> | |||||
basefont |
|
|
|
|||
bdo |
|
|
|
|||
bgsound |
|
|
||||
big |
|
|
|
|||
blink |
|
|
|
|||
blockquote |
|
|
|
|||
body |
|
|
|
del, ins | ||
br |
|
|
||||
button |
|
|
|
|
||
. | ||||||
. | ||||||
. | ... | |||||
. | ||||||
. | ||||||
. | ||||||
. | ||||||
. |
C
|
Parent |
Parent |
Content |
Content |
caption | table |
|
||
center |
|
|
|
|
cite |
|
|
|
|
code | x |
|
|
|
col | colgroup, table | |||
colgroup | table | col |
D
|
Parent |
Parent |
Content |
Content |
dd | dl |
|
|
|
del | body |
|
|
|
dfn |
|
|
|
|
dir |
|
li | ||
div |
|
|
|
|
dl |
|
dd, dt | ||
dt | dl |
|
E
|
Parent |
Parent |
Content |
Content |
em |
|
|
|
|
embed |
|
|
|
|
. | ||||
. | ||||
. | ||||
. | ||||
. |
F
|
Parent |
Parent |
Content |
Content |
fieldset |
|
|
|
|
font |
|
|
|
|
form |
|
|
|
|
frame |
|
|||
frameset | frameset, html | frame, frameset, noframes |
G
|
Parent |
Parent |
Content |
Content |
H
|
Parent |
Parent |
Content |
Content |
Content |
head | <html> |
|
|||
hr |
|
||||
html | body, frameset, head | ||||
hx |
|
|
|||
. | |||||
. | |||||
. | |||||
. | |||||
. | |||||
. | |||||
. | |||||
. | |||||
. | |||||
. | |||||
. |
I
|
Parent |
Parent |
Content |
Content |
Content |
i |
|
|
|
||
iframe |
|
|
|
|
|
ilayer |
|
|
|
||
img |
|
|
|||
ins |
|
|
|
||
isindex |
|
J
|
Parent |
Parent |
Content |
Content |
K
|
Parent |
Parent |
Content |
Content |
kbd |
|
|
|
|
keygen |
|
L
|
Parent |
Parent |
Content |
Content |
Content |
label |
|
|
|
||
layer |
|
|
|
||
legend |
|
|
|||
li |
|
|
|
||
link |
|
||||
listing |
M
|
Parent |
Parent |
Content |
Content |
Content |
map |
|
|
|
||
marquee |
|
|
|
||
menu |
|
|
|||
meta |
|
||||
multicol |
|
|
|
N
|
Parent |
Parent |
Content |
Content |
Content |
nextid |
|
||||
nobr |
|
|
|
||
noembed |
|
|
|
||
noframes |
|
|
|
||
nolayer |
|
|
|
||
noscript |
|
|
|
O
|
Parent |
Parent |
Content |
Content |
object |
|
|
|
|
ol |
|
|
||
optgroup |
|
|
||
option |
|
|
||
. | ||||
. | ||||
. | ||||
. |
P
|
Parent |
Parent |
Content |
Content |
p |
|
|
||
param |
|
|||
plaintext | ||||
pre |
|
|
*Exceptions:
applet, basefont, big, blink, font, iframe, img,
nobr, object, small, sub, sup
Q
|
Parent |
Parent |
Content |
Content |
q |
|
|
|
S
|
Parent |
Parent |
Content |
Content |
Content |
s |
|
|
|
||
samp |
|
|
|
||
script |
|
|
|
||
select |
|
|
|
||
small |
|
|
|
||
sound |
|
|
|||
spacer |
|
|
|||
span |
|
|
|
||
strike |
|
|
|
||
strong |
|
|
|
||
style |
|
|
|||
sub |
|
|
|
||
sup |
|
|
|
T
|
Parent |
Parent |
Content |
Content |
Content |
table |
|
|
|||
tbody |
|
|
|||
td |
|
|
|
||
textarea |
|
|
|
||
tfoot |
|
|
|||
th |
|
|
|
||
thead |
|
|
|||
title |
|
|
|||
tr |
|
|
|||
tt |
|
|
|
U
|
Parent |
Parent |
Content |
Content |
u |
|
|
|
|
ul |
|
|
VWX!
|
Parent |
Parent |
Content |
Content |
var |
|
|
|
|
wbr |
|
|
||
xmp | ||||
!doctype |
|
|||
!-- |