summaryrefslogtreecommitdiff
path: root/test/data/tree-construction/after-body.dat
blob: acde270606b254f82b0fe3ee468629a2a85cfabd (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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#data
<!DOCTYPE html><body></body>

#errors
#comments
Space characters in "after body" should be appended to the body node.
#document
| <!DOCTYPE html>
| <html>
|   <head>
|   <body>
|     "
"

#data
<!DOCTYPE html><body></body><!--x-->
#errors
#comments
Comment tokens in "after body" should be appended to the "html" element.
#document
| <!DOCTYPE html>
| <html>
|   <head>
|   <body>
|   <!-- x -->

#data
<!DOCTYPE html><body></body><!DOCTYPE html>
#errors
Unexpected DOCTYPE declaration.
#comments
DOCTYPE tokens in "after body" should be ignored.
#document
| <!DOCTYPE html>
| <html>
|   <head>
|   <body>

#data
<!DOCTYPE html><body></body><html>
#errors
Second "html" element not allowed.
#comments
"html" elements in "after body" should be handled like in body and ignored.
#document
| <!DOCTYPE html>
| <html>
|   <head>
|   <body>

#data
<!DOCTYPE html><body></body><html bgcolor="red">
#errors
Second "html" element not allowed.
#comments
"html" elements in "after body" should be handled like in body and ignored,
but extra attributes should be added to the root "html" element.
#document
| <!DOCTYPE html>
| <html>
|   bgcolor="red"
|   <head>
|   <body>

#data
<!DOCTYPE html><body></body></html>
#errors
#comments
End "html" tag should not result in parse error.
#document
| <!DOCTYPE html>
| <html>
|   <head>
|   <body>

#data
<!DOCTYPE html><body></body>
#errors
#comments
EOF should not result in parse error.
#document
| <!DOCTYPE html>
| <html>
|   <head>
|   <body>

#data
<!DOCTYPE html><body></body>xx
#errors
Content after end "body" tag.
#comments
Non-whitespace character tokens should raise parse error, and be processed
as "in body".
#document
| <!DOCTYPE html>
| <html>
|   <head>
|   <body>
|     "xx"

#data
<!DOCTYPE html><body></body><p>
#errors
Start tag after end "body" tag.
#comments
Non-html start tags should switch insertion mode to "in body" and processed
appropriately.
#document
| <!DOCTYPE html>
| <html>
|   <head>
|   <body>
|     <p>

#data
<!DOCTYPE html><body></body></dd>
#errors
End tag after end "body" tag.
End tag does not match any opened elements.
#comments
Non-html end tags should switch insertion mode to "in body" and processed
appropriately.
#document
| <!DOCTYPE html>
| <html>
|   <head>
|   <body>

#data