44<span>Hello</span>
55---
66
7- (fragment
7+ (document
88 (element
99 (start_tag (tag_name))
1010 (text)
@@ -16,7 +16,7 @@ Tags with attributes
1616<input value=yes class="a" data-💩></input>
1717---
1818
19- (fragment
19+ (document
2020 (element
2121 (start_tag
2222 (tag_name)
@@ -42,7 +42,7 @@ Nested tags
4242</div>
4343---
4444
45- (fragment
45+ (document
4646 (element
4747 (start_tag (tag_name))
4848 (element
@@ -63,7 +63,7 @@ Void tags
6363<form><img src="something.png"><br><input type=submit value=Ok /></form>
6464---
6565
66- (fragment
66+ (document
6767 (element
6868 (start_tag (tag_name))
6969 (element
@@ -84,7 +84,7 @@ Void tags at EOF
8484<img src="something.png">
8585---
8686
87- (fragment
87+ (document
8888 (element
8989 (start_tag
9090 (tag_name)
@@ -100,7 +100,7 @@ Custom tags
100100</something:different>
101101---
102102
103- (fragment
103+ (document
104104 (element
105105 (start_tag (tag_name))
106106 (element
@@ -119,7 +119,7 @@ Comments
119119</div>
120120---
121121
122- (fragment
122+ (document
123123 (comment)
124124 (comment)
125125 (element
@@ -147,7 +147,7 @@ Raw text elements
147147
148148---
149149
150- (fragment
150+ (document
151151 (script_element
152152 (start_tag (tag_name))
153153 (raw_text)
@@ -169,7 +169,7 @@ All-caps doctype
169169 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
170170---
171171
172- (fragment
172+ (document
173173 (doctype))
174174
175175==================================
@@ -178,7 +178,7 @@ Lowercase doctype
178178<!doctype html>
179179---
180180
181- (fragment
181+ (document
182182 (doctype))
183183
184184==================================
@@ -190,7 +190,7 @@ LI elements without close tags
190190</ul>
191191---
192192
193- (fragment
193+ (document
194194 (element
195195 (start_tag (tag_name))
196196 (element (start_tag (tag_name)) (text))
@@ -209,7 +209,7 @@ DT and DL elements without close tags
209209</dl>
210210---
211211
212- (fragment
212+ (document
213213 (element
214214 (start_tag (tag_name))
215215 (element (start_tag (tag_name)) (text))
@@ -229,7 +229,7 @@ P elements without close tags
229229<h1>Five</h1>
230230---
231231
232- (fragment
232+ (document
233233 (element (start_tag (tag_name)) (text))
234234 (element (start_tag (tag_name)) (text) (end_tag (tag_name)))
235235 (element (start_tag (tag_name)) (text))
@@ -242,7 +242,7 @@ Ruby annotation elements without close tags
242242<ruby>東<rb>京<rt>とう<rt>きょう</ruby>
243243---
244244
245- (fragment
245+ (document
246246 (element
247247 (start_tag (tag_name))
248248 (text)
@@ -266,7 +266,7 @@ COLGROUP elements without end tags
266266</table>
267267---
268268
269- (fragment
269+ (document
270270 (element
271271 (start_tag (tag_name))
272272 (element
@@ -298,7 +298,7 @@ TR, TD, and TH elements without end tags
298298</table>
299299---
300300
301- (fragment
301+ (document
302302 (element
303303 (start_tag (tag_name))
304304 (element
@@ -318,7 +318,7 @@ Named entities in tag contents
318318<p>Lorem ipsum dolor sit © amet.</p>
319319---
320320
321- (fragment
321+ (document
322322 (element
323323 (start_tag (tag_name))
324324 (text)
@@ -335,7 +335,7 @@ Numeric entities in tag contents
335335<p>Lorem ipsum   dolor sit — amet.</p>
336336---
337337
338- (fragment
338+ (document
339339 (element
340340 (start_tag (tag_name))
341341 (text)
@@ -352,7 +352,7 @@ Multiple entities in tag contents
352352<p>Lorem ipsum   dolor   sit amet.</p>
353353---
354354
355- (fragment
355+ (document
356356 (element
357357 (start_tag (tag_name))
358358 (text)
0 commit comments