Skip to content

Commit 71eebd5

Browse files
gsnedderssideshowbarker
authored andcommitted
Add a test for order of comments after </html>
Notably, html5lib-python's lxml treebuilder gets this wrong: html5lib/html5lib-python#488
1 parent 1ddd636 commit 71eebd5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tree-construction/webkit01.dat

+14
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,20 @@ console.log("FOO<span>BAR</span>BAZ");
307307
| <body>
308308
| <!-- Hi there -->
309309

310+
#data
311+
<html><body></body></html><!-- Comment A --><!-- Comment B --><!-- Comment C --><!-- Comment D --><!-- Comment E -->
312+
#errors
313+
(1,6): expected-doctype-but-got-start-tag
314+
#document
315+
| <html>
316+
| <head>
317+
| <body>
318+
| <!-- Comment A -->
319+
| <!-- Comment B -->
320+
| <!-- Comment C -->
321+
| <!-- Comment D -->
322+
| <!-- Comment E -->
323+
310324
#data
311325
<html><body></body></html>x<!-- Hi there -->
312326
#errors

0 commit comments

Comments
 (0)