@tkeron/html-parser 0.1.7 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/README.md +1 -7
  2. package/bun.lock +5 -0
  3. package/index.ts +4 -0
  4. package/package.json +7 -1
  5. package/src/css-selector.ts +1 -1
  6. package/src/dom-simulator.ts +38 -16
  7. package/src/encoding.ts +39 -0
  8. package/src/index.ts +9 -0
  9. package/src/parser.ts +478 -144
  10. package/src/serializer.ts +450 -0
  11. package/src/tokenizer.ts +59 -43
  12. package/tests/advanced.test.ts +119 -106
  13. package/tests/custom-elements.test.ts +172 -162
  14. package/tests/dom-extended.test.ts +12 -12
  15. package/tests/dom-manipulation.test.ts +9 -10
  16. package/tests/dom.test.ts +32 -27
  17. package/tests/helpers/tokenizer-adapter.test.ts +70 -0
  18. package/tests/helpers/tokenizer-adapter.ts +65 -0
  19. package/tests/helpers/tree-adapter.test.ts +39 -0
  20. package/tests/helpers/tree-adapter.ts +43 -0
  21. package/tests/html5lib-data/tokenizer/namedEntities.test +42422 -0
  22. package/tests/html5lib-data/tokenizer/pendingSpecChanges.test +9 -0
  23. package/tests/html5lib-data/tree-construction/adoption01.dat +354 -0
  24. package/tests/html5lib-data/tree-construction/adoption02.dat +39 -0
  25. package/tests/html5lib-data/tree-construction/domjs-unsafe.dat +0 -0
  26. package/tests/html5lib-data/tree-construction/entities02.dat +309 -0
  27. package/tests/html5lib-data/tree-construction/html5test-com.dat +301 -0
  28. package/tests/html5lib-data/tree-construction/math.dat +104 -0
  29. package/tests/html5lib-data/tree-construction/namespace-sensitivity.dat +22 -0
  30. package/tests/html5lib-data/tree-construction/noscript01.dat +237 -0
  31. package/tests/html5lib-data/tree-construction/ruby.dat +302 -0
  32. package/tests/html5lib-data/tree-construction/scriptdata01.dat +372 -0
  33. package/tests/html5lib-data/tree-construction/svg.dat +104 -0
  34. package/tests/html5lib-data/tree-construction/template.dat +1673 -0
  35. package/tests/html5lib-data/tree-construction/tests10.dat +853 -0
  36. package/tests/html5lib-data/tree-construction/tests11.dat +523 -0
  37. package/tests/html5lib-data/tree-construction/tests20.dat +842 -0
  38. package/tests/html5lib-data/tree-construction/tests21.dat +306 -0
  39. package/tests/html5lib-data/tree-construction/tests23.dat +168 -0
  40. package/tests/html5lib-data/tree-construction/tests24.dat +79 -0
  41. package/tests/html5lib-data/tree-construction/tests5.dat +210 -0
  42. package/tests/html5lib-data/tree-construction/tests6.dat +663 -0
  43. package/tests/html5lib-data/tree-construction/tests_innerHTML_1.dat +844 -0
  44. package/tests/parser.test.ts +172 -193
  45. package/tests/serializer-core.test.ts +16 -0
  46. package/tests/serializer-data/core.test +125 -0
  47. package/tests/serializer-data/injectmeta.test +66 -0
  48. package/tests/serializer-data/optionaltags.test +965 -0
  49. package/tests/serializer-data/options.test +60 -0
  50. package/tests/serializer-data/whitespace.test +51 -0
  51. package/tests/serializer-injectmeta.test.ts +16 -0
  52. package/tests/serializer-optionaltags.test.ts +16 -0
  53. package/tests/serializer-options.test.ts +16 -0
  54. package/tests/serializer-whitespace.test.ts +16 -0
  55. package/tests/tokenizer-namedEntities.test.ts +20 -0
  56. package/tests/tokenizer-pendingSpecChanges.test.ts +20 -0
  57. package/tests/tokenizer.test.ts +3 -6
  58. package/tests/tree-construction-adoption01.test.ts +37 -0
  59. package/tests/tree-construction-adoption02.test.ts +34 -0
  60. package/tests/tree-construction-domjs-unsafe.test.ts +24 -0
  61. package/tests/tree-construction-entities02.test.ts +33 -0
  62. package/tests/tree-construction-html5test-com.test.ts +24 -0
  63. package/tests/tree-construction-math.test.ts +18 -0
  64. package/tests/tree-construction-namespace-sensitivity.test.ts +18 -0
  65. package/tests/tree-construction-noscript01.test.ts +18 -0
  66. package/tests/tree-construction-ruby.test.ts +21 -0
  67. package/tests/tree-construction-scriptdata01.test.ts +21 -0
  68. package/tests/tree-construction-svg.test.ts +21 -0
  69. package/tests/tree-construction-template.test.ts +21 -0
  70. package/tests/tree-construction-tests10.test.ts +21 -0
  71. package/tests/tree-construction-tests11.test.ts +21 -0
  72. package/tests/tree-construction-tests20.test.ts +18 -0
  73. package/tests/tree-construction-tests21.test.ts +18 -0
  74. package/tests/tree-construction-tests23.test.ts +18 -0
  75. package/tests/tree-construction-tests24.test.ts +18 -0
  76. package/tests/tree-construction-tests5.test.ts +21 -0
  77. package/tests/tree-construction-tests6.test.ts +21 -0
  78. package/tests/tree-construction-tests_innerHTML_1.test.ts +21 -0
  79. package/tests/official/README.md +0 -87
  80. package/tests/official/acid/acid-tests.test.ts +0 -309
  81. package/tests/official/final-output/final-output.test.ts +0 -361
  82. package/tests/official/html5lib/tokenizer-utils.ts +0 -192
  83. package/tests/official/html5lib/tokenizer.test.ts +0 -171
  84. package/tests/official/html5lib/tree-construction-utils.ts +0 -194
  85. package/tests/official/html5lib/tree-construction.test.ts +0 -250
  86. package/tests/official/validator/validator-tests.test.ts +0 -237
  87. package/tests/official/validator-nu/validator-nu.test.ts +0 -335
  88. package/tests/official/whatwg/whatwg-tests.test.ts +0 -205
  89. package/tests/official/wpt/wpt-tests.test.ts +0 -409
@@ -0,0 +1,844 @@
1
+ #data
2
+ <body><span>
3
+ #errors
4
+ (1,6): unexpected-start-tag
5
+ (1,12): expected-closing-tag-but-got-eof
6
+ #document-fragment
7
+ body
8
+ #document
9
+ | <span>
10
+
11
+ #data
12
+ <span><body>
13
+ #errors
14
+ (1,12): unexpected-start-tag
15
+ (1,12): expected-closing-tag-but-got-eof
16
+ #document-fragment
17
+ body
18
+ #document
19
+ | <span>
20
+
21
+ #data
22
+ <span><body>
23
+ #errors
24
+ (1,12): unexpected-start-tag
25
+ (1,12): expected-closing-tag-but-got-eof
26
+ #document-fragment
27
+ div
28
+ #document
29
+ | <span>
30
+
31
+ #data
32
+ <body><span>
33
+ #errors
34
+ (1,12): expected-closing-tag-but-got-eof
35
+ #document-fragment
36
+ html
37
+ #document
38
+ | <head>
39
+ | <body>
40
+ | <span>
41
+
42
+ #data
43
+ <frameset><span>
44
+ #errors
45
+ (1,10): unexpected-start-tag
46
+ (1,16): expected-closing-tag-but-got-eof
47
+ #document-fragment
48
+ body
49
+ #document
50
+ | <span>
51
+
52
+ #data
53
+ <span><frameset>
54
+ #errors
55
+ (1,16): unexpected-start-tag
56
+ (1,16): expected-closing-tag-but-got-eof
57
+ #document-fragment
58
+ body
59
+ #document
60
+ | <span>
61
+
62
+ #data
63
+ <span><frameset>
64
+ #errors
65
+ (1,16): unexpected-start-tag
66
+ (1,16): expected-closing-tag-but-got-eof
67
+ #document-fragment
68
+ div
69
+ #document
70
+ | <span>
71
+
72
+ #data
73
+ <frameset><span>
74
+ #errors
75
+ (1,16): unexpected-start-tag-in-frameset
76
+ (1,16): eof-in-frameset
77
+ #document-fragment
78
+ html
79
+ #document
80
+ | <head>
81
+ | <frameset>
82
+
83
+ #data
84
+ <table><tr>
85
+ #errors
86
+ (1,7): unexpected-start-tag
87
+ #document-fragment
88
+ table
89
+ #document
90
+ | <tbody>
91
+ | <tr>
92
+
93
+ #data
94
+ </table><tr>
95
+ #errors
96
+ (1,8): unexpected-end-tag
97
+ #document-fragment
98
+ table
99
+ #document
100
+ | <tbody>
101
+ | <tr>
102
+
103
+ #data
104
+ <a>
105
+ #errors
106
+ (1,3): unexpected-start-tag-implies-table-voodoo
107
+ (1,3): eof-in-table
108
+ #document-fragment
109
+ table
110
+ #document
111
+ | <a>
112
+
113
+ #data
114
+ <a><caption>a
115
+ #errors
116
+ (1,3): unexpected-start-tag-implies-table-voodoo
117
+ (1,13): expected-closing-tag-but-got-eof
118
+ #document-fragment
119
+ table
120
+ #document
121
+ | <a>
122
+ | <caption>
123
+ | "a"
124
+
125
+ #data
126
+ <a><colgroup><col>
127
+ #errors
128
+ (1,3): foster-parenting-start-token
129
+ (1,18): expected-closing-tag-but-got-eof
130
+ #document-fragment
131
+ table
132
+ #document
133
+ | <a>
134
+ | <colgroup>
135
+ | <col>
136
+
137
+ #data
138
+ <a><tbody><tr>
139
+ #errors
140
+ (1,3): foster-parenting-start-tag
141
+ #document-fragment
142
+ table
143
+ #document
144
+ | <a>
145
+ | <tbody>
146
+ | <tr>
147
+
148
+ #data
149
+ <a><tfoot><tr>
150
+ #errors
151
+ (1,3): foster-parenting-start-tag
152
+ #document-fragment
153
+ table
154
+ #document
155
+ | <a>
156
+ | <tfoot>
157
+ | <tr>
158
+
159
+ #data
160
+ <a><thead><tr>
161
+ #errors
162
+ (1,3): foster-parenting-start-tag
163
+ #document-fragment
164
+ table
165
+ #document
166
+ | <a>
167
+ | <thead>
168
+ | <tr>
169
+
170
+ #data
171
+ <a><tr>
172
+ #errors
173
+ (1,3): foster-parenting-start-tag
174
+ #document-fragment
175
+ table
176
+ #document
177
+ | <a>
178
+ | <tbody>
179
+ | <tr>
180
+
181
+ #data
182
+ <a><th>
183
+ #errors
184
+ (1,3): unexpected-start-tag-implies-table-voodoo
185
+ (1,7): unexpected-cell-in-table-body
186
+ #document-fragment
187
+ table
188
+ #document
189
+ | <a>
190
+ | <tbody>
191
+ | <tr>
192
+ | <th>
193
+
194
+ #data
195
+ <a><td>
196
+ #errors
197
+ (1,3): unexpected-start-tag-implies-table-voodoo
198
+ (1,7): unexpected-cell-in-table-body
199
+ #document-fragment
200
+ table
201
+ #document
202
+ | <a>
203
+ | <tbody>
204
+ | <tr>
205
+ | <td>
206
+
207
+ #data
208
+ <table></table><tbody>
209
+ #errors
210
+ (1,22): unexpected-start-tag
211
+ #document-fragment
212
+ caption
213
+ #document
214
+ | <table>
215
+
216
+ #data
217
+ </table><span>
218
+ #errors
219
+ (1,8): unexpected-end-tag
220
+ (1,14): expected-closing-tag-but-got-eof
221
+ #document-fragment
222
+ caption
223
+ #document
224
+ | <span>
225
+
226
+ #data
227
+ <span></table>
228
+ #errors
229
+ (1,14): unexpected-end-tag
230
+ (1,14): expected-closing-tag-but-got-eof
231
+ #document-fragment
232
+ caption
233
+ #document
234
+ | <span>
235
+
236
+ #data
237
+ </caption><span>
238
+ #errors
239
+ (1,10): XXX-undefined-error
240
+ (1,16): expected-closing-tag-but-got-eof
241
+ #document-fragment
242
+ caption
243
+ #document
244
+ | <span>
245
+
246
+ #data
247
+ <span></caption><span>
248
+ #errors
249
+ (1,16): XXX-undefined-error
250
+ (1,22): expected-closing-tag-but-got-eof
251
+ #document-fragment
252
+ caption
253
+ #document
254
+ | <span>
255
+ | <span>
256
+
257
+ #data
258
+ <span><caption><span>
259
+ #errors
260
+ (1,15): unexpected-start-tag
261
+ (1,21): expected-closing-tag-but-got-eof
262
+ #document-fragment
263
+ caption
264
+ #document
265
+ | <span>
266
+ | <span>
267
+
268
+ #data
269
+ <span><col><span>
270
+ #errors
271
+ (1,11): unexpected-start-tag
272
+ (1,17): expected-closing-tag-but-got-eof
273
+ #document-fragment
274
+ caption
275
+ #document
276
+ | <span>
277
+ | <span>
278
+
279
+ #data
280
+ <span><colgroup><span>
281
+ #errors
282
+ (1,16): unexpected-start-tag
283
+ (1,22): expected-closing-tag-but-got-eof
284
+ #document-fragment
285
+ caption
286
+ #document
287
+ | <span>
288
+ | <span>
289
+
290
+ #data
291
+ <span><html><span>
292
+ #errors
293
+ (1,12): non-html-root
294
+ (1,18): expected-closing-tag-but-got-eof
295
+ #document-fragment
296
+ caption
297
+ #document
298
+ | <span>
299
+ | <span>
300
+
301
+ #data
302
+ <span><tbody><span>
303
+ #errors
304
+ (1,13): unexpected-start-tag
305
+ (1,19): expected-closing-tag-but-got-eof
306
+ #document-fragment
307
+ caption
308
+ #document
309
+ | <span>
310
+ | <span>
311
+
312
+ #data
313
+ <span><td><span>
314
+ #errors
315
+ (1,10): unexpected-start-tag
316
+ (1,16): expected-closing-tag-but-got-eof
317
+ #document-fragment
318
+ caption
319
+ #document
320
+ | <span>
321
+ | <span>
322
+
323
+ #data
324
+ <span><tfoot><span>
325
+ #errors
326
+ (1,13): unexpected-start-tag
327
+ (1,19): expected-closing-tag-but-got-eof
328
+ #document-fragment
329
+ caption
330
+ #document
331
+ | <span>
332
+ | <span>
333
+
334
+ #data
335
+ <span><thead><span>
336
+ #errors
337
+ (1,13): unexpected-start-tag
338
+ (1,19): expected-closing-tag-but-got-eof
339
+ #document-fragment
340
+ caption
341
+ #document
342
+ | <span>
343
+ | <span>
344
+
345
+ #data
346
+ <span><th><span>
347
+ #errors
348
+ (1,10): unexpected-start-tag
349
+ (1,16): expected-closing-tag-but-got-eof
350
+ #document-fragment
351
+ caption
352
+ #document
353
+ | <span>
354
+ | <span>
355
+
356
+ #data
357
+ <span><tr><span>
358
+ #errors
359
+ (1,10): unexpected-start-tag
360
+ (1,16): expected-closing-tag-but-got-eof
361
+ #document-fragment
362
+ caption
363
+ #document
364
+ | <span>
365
+ | <span>
366
+
367
+ #data
368
+ <span></table><span>
369
+ #errors
370
+ (1,14): unexpected-end-tag
371
+ (1,20): expected-closing-tag-but-got-eof
372
+ #document-fragment
373
+ caption
374
+ #document
375
+ | <span>
376
+ | <span>
377
+
378
+ #data
379
+ </colgroup><col>
380
+ #errors
381
+ (1,11): XXX-undefined-error
382
+ #document-fragment
383
+ colgroup
384
+ #document
385
+ | <col>
386
+
387
+ #data
388
+ <a><col>
389
+ #errors
390
+ (1,3): XXX-undefined-error
391
+ #document-fragment
392
+ colgroup
393
+ #document
394
+ | <col>
395
+
396
+ #data
397
+ <caption><a>
398
+ #errors
399
+ (1,9): XXX-undefined-error
400
+ (1,12): unexpected-start-tag-implies-table-voodoo
401
+ (1,12): eof-in-table
402
+ #document-fragment
403
+ tbody
404
+ #document
405
+ | <a>
406
+
407
+ #data
408
+ <col><a>
409
+ #errors
410
+ (1,5): XXX-undefined-error
411
+ (1,8): unexpected-start-tag-implies-table-voodoo
412
+ (1,8): eof-in-table
413
+ #document-fragment
414
+ tbody
415
+ #document
416
+ | <a>
417
+
418
+ #data
419
+ <colgroup><a>
420
+ #errors
421
+ (1,10): XXX-undefined-error
422
+ (1,13): unexpected-start-tag-implies-table-voodoo
423
+ (1,13): eof-in-table
424
+ #document-fragment
425
+ tbody
426
+ #document
427
+ | <a>
428
+
429
+ #data
430
+ <tbody><a>
431
+ #errors
432
+ (1,7): XXX-undefined-error
433
+ (1,10): unexpected-start-tag-implies-table-voodoo
434
+ (1,10): eof-in-table
435
+ #document-fragment
436
+ tbody
437
+ #document
438
+ | <a>
439
+
440
+ #data
441
+ <tfoot><a>
442
+ #errors
443
+ (1,7): XXX-undefined-error
444
+ (1,10): unexpected-start-tag-implies-table-voodoo
445
+ (1,10): eof-in-table
446
+ #document-fragment
447
+ tbody
448
+ #document
449
+ | <a>
450
+
451
+ #data
452
+ <thead><a>
453
+ #errors
454
+ (1,7): XXX-undefined-error
455
+ (1,10): unexpected-start-tag-implies-table-voodoo
456
+ (1,10): eof-in-table
457
+ #document-fragment
458
+ tbody
459
+ #document
460
+ | <a>
461
+
462
+ #data
463
+ </table><a>
464
+ #errors
465
+ (1,8): XXX-undefined-error
466
+ (1,11): unexpected-start-tag-implies-table-voodoo
467
+ (1,11): eof-in-table
468
+ #document-fragment
469
+ tbody
470
+ #document
471
+ | <a>
472
+
473
+ #data
474
+ <a><tr>
475
+ #errors
476
+ (1,3): unexpected-start-tag-implies-table-voodoo
477
+ #document-fragment
478
+ tbody
479
+ #document
480
+ | <a>
481
+ | <tr>
482
+
483
+ #data
484
+ <a><td>
485
+ #errors
486
+ (1,3): unexpected-start-tag-implies-table-voodoo
487
+ (1,7): unexpected-cell-in-table-body
488
+ #document-fragment
489
+ tbody
490
+ #document
491
+ | <a>
492
+ | <tr>
493
+ | <td>
494
+
495
+ #data
496
+ <td><table><tbody><a><tr>
497
+ #errors
498
+ (1,4): unexpected-cell-in-table-body
499
+ (1,21): unexpected-start-tag-implies-table-voodoo
500
+ (1,25): eof-in-table
501
+ #document-fragment
502
+ tbody
503
+ #document
504
+ | <tr>
505
+ | <td>
506
+ | <a>
507
+ | <table>
508
+ | <tbody>
509
+ | <tr>
510
+
511
+ #data
512
+ </tr><td>
513
+ #errors
514
+ (1,5): XXX-undefined-error
515
+ #document-fragment
516
+ tr
517
+ #document
518
+ | <td>
519
+
520
+ #data
521
+ <td><table><a><tr></tr><tr>
522
+ #errors
523
+ (1,14): unexpected-start-tag-implies-table-voodoo
524
+ (1,27): eof-in-table
525
+ #document-fragment
526
+ tr
527
+ #document
528
+ | <td>
529
+ | <a>
530
+ | <table>
531
+ | <tbody>
532
+ | <tr>
533
+ | <tr>
534
+
535
+ #data
536
+ <caption><td>
537
+ #errors
538
+ (1,9): XXX-undefined-error
539
+ #document-fragment
540
+ tr
541
+ #document
542
+ | <td>
543
+
544
+ #data
545
+ <col><td>
546
+ #errors
547
+ (1,5): XXX-undefined-error
548
+ #document-fragment
549
+ tr
550
+ #document
551
+ | <td>
552
+
553
+ #data
554
+ <colgroup><td>
555
+ #errors
556
+ (1,10): XXX-undefined-error
557
+ #document-fragment
558
+ tr
559
+ #document
560
+ | <td>
561
+
562
+ #data
563
+ <tbody><td>
564
+ #errors
565
+ (1,7): XXX-undefined-error
566
+ #document-fragment
567
+ tr
568
+ #document
569
+ | <td>
570
+
571
+ #data
572
+ <tfoot><td>
573
+ #errors
574
+ (1,7): XXX-undefined-error
575
+ #document-fragment
576
+ tr
577
+ #document
578
+ | <td>
579
+
580
+ #data
581
+ <thead><td>
582
+ #errors
583
+ (1,7): XXX-undefined-error
584
+ #document-fragment
585
+ tr
586
+ #document
587
+ | <td>
588
+
589
+ #data
590
+ <tr><td>
591
+ #errors
592
+ (1,4): XXX-undefined-error
593
+ #document-fragment
594
+ tr
595
+ #document
596
+ | <td>
597
+
598
+ #data
599
+ </table><td>
600
+ #errors
601
+ (1,8): XXX-undefined-error
602
+ #document-fragment
603
+ tr
604
+ #document
605
+ | <td>
606
+
607
+ #data
608
+ <td><table></table><td>
609
+ #errors
610
+ #document-fragment
611
+ tr
612
+ #document
613
+ | <td>
614
+ | <table>
615
+ | <td>
616
+
617
+ #data
618
+ <caption><a>
619
+ #errors
620
+ (1,9): XXX-undefined-error
621
+ (1,12): expected-closing-tag-but-got-eof
622
+ #document-fragment
623
+ td
624
+ #document
625
+ | <a>
626
+
627
+ #data
628
+ <col><a>
629
+ #errors
630
+ (1,5): XXX-undefined-error
631
+ (1,8): expected-closing-tag-but-got-eof
632
+ #document-fragment
633
+ td
634
+ #document
635
+ | <a>
636
+
637
+ #data
638
+ <colgroup><a>
639
+ #errors
640
+ (1,10): XXX-undefined-error
641
+ (1,13): expected-closing-tag-but-got-eof
642
+ #document-fragment
643
+ td
644
+ #document
645
+ | <a>
646
+
647
+ #data
648
+ <tbody><a>
649
+ #errors
650
+ (1,7): XXX-undefined-error
651
+ (1,10): expected-closing-tag-but-got-eof
652
+ #document-fragment
653
+ td
654
+ #document
655
+ | <a>
656
+
657
+ #data
658
+ <tfoot><a>
659
+ #errors
660
+ (1,7): XXX-undefined-error
661
+ (1,10): expected-closing-tag-but-got-eof
662
+ #document-fragment
663
+ td
664
+ #document
665
+ | <a>
666
+
667
+ #data
668
+ <th><a>
669
+ #errors
670
+ (1,4): XXX-undefined-error
671
+ (1,7): expected-closing-tag-but-got-eof
672
+ #document-fragment
673
+ td
674
+ #document
675
+ | <a>
676
+
677
+ #data
678
+ <thead><a>
679
+ #errors
680
+ (1,7): XXX-undefined-error
681
+ (1,10): expected-closing-tag-but-got-eof
682
+ #document-fragment
683
+ td
684
+ #document
685
+ | <a>
686
+
687
+ #data
688
+ <tr><a>
689
+ #errors
690
+ (1,4): XXX-undefined-error
691
+ (1,7): expected-closing-tag-but-got-eof
692
+ #document-fragment
693
+ td
694
+ #document
695
+ | <a>
696
+
697
+ #data
698
+ </table><a>
699
+ #errors
700
+ (1,8): XXX-undefined-error
701
+ (1,11): expected-closing-tag-but-got-eof
702
+ #document-fragment
703
+ td
704
+ #document
705
+ | <a>
706
+
707
+ #data
708
+ </tbody><a>
709
+ #errors
710
+ (1,8): XXX-undefined-error
711
+ (1,11): expected-closing-tag-but-got-eof
712
+ #document-fragment
713
+ td
714
+ #document
715
+ | <a>
716
+
717
+ #data
718
+ </td><a>
719
+ #errors
720
+ (1,5): unexpected-end-tag
721
+ (1,8): expected-closing-tag-but-got-eof
722
+ #document-fragment
723
+ td
724
+ #document
725
+ | <a>
726
+
727
+ #data
728
+ </tfoot><a>
729
+ #errors
730
+ (1,8): XXX-undefined-error
731
+ (1,11): expected-closing-tag-but-got-eof
732
+ #document-fragment
733
+ td
734
+ #document
735
+ | <a>
736
+
737
+ #data
738
+ </thead><a>
739
+ #errors
740
+ (1,8): XXX-undefined-error
741
+ (1,11): expected-closing-tag-but-got-eof
742
+ #document-fragment
743
+ td
744
+ #document
745
+ | <a>
746
+
747
+ #data
748
+ </th><a>
749
+ #errors
750
+ (1,5): unexpected-end-tag
751
+ (1,8): expected-closing-tag-but-got-eof
752
+ #document-fragment
753
+ td
754
+ #document
755
+ | <a>
756
+
757
+ #data
758
+ </tr><a>
759
+ #errors
760
+ (1,5): XXX-undefined-error
761
+ (1,8): expected-closing-tag-but-got-eof
762
+ #document-fragment
763
+ td
764
+ #document
765
+ | <a>
766
+
767
+ #data
768
+ <table><td><td>
769
+ #errors
770
+ (1,11): unexpected-cell-in-table-body
771
+ (1,15): expected-closing-tag-but-got-eof
772
+ #document-fragment
773
+ td
774
+ #document
775
+ | <table>
776
+ | <tbody>
777
+ | <tr>
778
+ | <td>
779
+ | <td>
780
+
781
+ #data
782
+ </select><option>
783
+ #errors
784
+ (1,9): XXX-undefined-error
785
+ #document-fragment
786
+ select
787
+ #document
788
+ | <option>
789
+
790
+ #data
791
+ <input><option>
792
+ #errors
793
+ #document-fragment
794
+ select
795
+ #document
796
+ | <input>
797
+ | <option>
798
+
799
+ #data
800
+ <keygen><option>
801
+ #errors
802
+ #document-fragment
803
+ select
804
+ #document
805
+ | <keygen>
806
+ | <option>
807
+
808
+ #data
809
+ <textarea><option>
810
+ #errors
811
+ 1:19: ERROR: Premature end of file. Currently open tags: html, textarea.
812
+ #document-fragment
813
+ select
814
+ #document
815
+ | <textarea>
816
+ | "<option>"
817
+
818
+ #data
819
+ </html><!--abc-->
820
+ #errors
821
+ (1,7): unexpected-end-tag-after-body-innerhtml
822
+ #document-fragment
823
+ html
824
+ #document
825
+ | <head>
826
+ | <body>
827
+ | <!-- abc -->
828
+
829
+ #data
830
+ </frameset><frame>
831
+ #errors
832
+ (1,11): unexpected-frameset-in-frameset-innerhtml
833
+ #document-fragment
834
+ frameset
835
+ #document
836
+ | <frame>
837
+
838
+ #data
839
+ #errors
840
+ #document-fragment
841
+ html
842
+ #document
843
+ | <head>
844
+ | <body>