summaryrefslogtreecommitdiff
path: root/test/data/tree-construction/after-after-body.dat
blob: 978bac70c961bd8ab4cce94f5f3bf2dab0139ac2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#data
<!DOCTYPE html><body></body></html><!--x-->
#errors
#comments
This tests comment insertion in "after after body".
#document
| <!DOCTYPE html>
| <html>
|   <head>
|   <body>
| <!-- x -->

#data
<!DOCTYPE html><body></body></html><!DOCTYPE foo>
#errors
Unexpected DOCTYPE: <!DOCTYPE foo>
#comments
This tests DOCTYPE ignorance in "after after body".
This handling should be identical to "in body".
#document
| <!DOCTYPE html>
| <html>
|   <head>
|   <body>

#data
<!DOCTYPE html><body></body></html>

#errors
#comments
This tests that whitespace in "after after body" is appended to the current
node, which in "after after body" is always the <body> element.
#document
| <!DOCTYPE html>
| <html>
|   <head>
|   <body>
|     "
"

#data
<!DOCTYPE html><body></body></html><html>
#errors
Second <html> tag not allowed.
#comments
This tests that no new <html> tag is added to the document.
This handling should be identical to "in body".
#document
| <!DOCTYPE html>
| <html>
|   <head>
|   <body>

#data
<!DOCTYPE html><body></body></html><html bgcolor="red">
#errors
Second <html> tag not allowed.
#comments
This tests that the attributes on <html> tags in "after after body" are added
to the top element on the stack of open elements (e.g. the root <html> tag.)
This handling should be identical to "in body".
#document
| <!DOCTYPE html>
| <html>
|   bgcolor="red"
|   <head>
|   <body>

#data
<!DOCTYPE html><body></body></html>xxx
#errors
Unexpected text past </html> tag.
#comments
This tests that "anything else" causes switching back to "in body" and
reprocessing of the token.  (Character data)
#document
| <!DOCTYPE html>
| <html>
|   <head>
|   <body>
|     "xxx"

#data
<!DOCTYPE html><body></body></html><table>
#errors
Unexpected tag after </html> tag.
EOF in "in table" mode.
#comments
This tests that "anything else" causes switching back to "in body" and
reprocessing of the token.  (Start tag)
#document
| <!DOCTYPE html>
| <html>
|   <head>
|   <body>
|     <table>

#data
<!DOCTYPE html><body></body></html></table>
#errors
Unexpected end tag after </html> tag.
End tag with no matching start tag.
#comments
This tests that "anything else" causes switching back to "in body" and
reprocessing of the token.  (End tag)
#document
| <!DOCTYPE html>
| <html>
|   <head>
|   <body>