Skip to content

Commit c29028b

Browse files
committed
Add text insertion mode parse errors
1 parent 3f2f0ea commit c29028b

11 files changed

+176
-0
lines changed

tree-construction/domjs-unsafe.dat

98 Bytes
Binary file not shown.

tree-construction/scriptdata01.dat

+8
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ FOO<script type="text/plain"></scriptx>BAR
8080
(1,42): expected-named-closing-tag-but-got-eof
8181
#new-errors
8282
(1:1) missing-doctype
83+
(1:43) eof-in-element-that-can-contain-only-text
8384
#document
8485
| <html>
8586
| <head>
@@ -248,6 +249,7 @@ FOO<script type="text/plain">'<!-- <sCrIpt>'</script>BAR
248249
(1,56): expected-named-closing-tag-but-got-eof
249250
#new-errors
250251
(1:1) missing-doctype
252+
(1:57) eof-in-element-that-can-contain-only-text
251253
(1:57) eof-in-script-html-comment-like-text
252254
#document
253255
| <html>
@@ -266,6 +268,7 @@ FOO<script type="text/plain">'<!-- <sCrIpt> -'</script>BAR
266268
(1,58): expected-named-closing-tag-but-got-eof
267269
#new-errors
268270
(1:1) missing-doctype
271+
(1:59) eof-in-element-that-can-contain-only-text
269272
(1:59) eof-in-script-html-comment-like-text
270273
#document
271274
| <html>
@@ -284,6 +287,7 @@ FOO<script type="text/plain">'<!-- <sCrIpt> --'</script>BAR
284287
(1,59): expected-named-closing-tag-but-got-eof
285288
#new-errors
286289
(1:1) missing-doctype
290+
(1:60) eof-in-element-that-can-contain-only-text
287291
(1:60) eof-in-script-html-comment-like-text
288292
#document
289293
| <html>
@@ -317,6 +321,7 @@ FOO<script type="text/plain">'<!-- <sCrIpt> --!>'</script>BAR
317321
(1,61): expected-named-closing-tag-but-got-eof
318322
#new-errors
319323
(1:1) missing-doctype
324+
(1:62) eof-in-element-that-can-contain-only-text
320325
(1:62) eof-in-script-html-comment-like-text
321326
#document
322327
| <html>
@@ -335,6 +340,7 @@ FOO<script type="text/plain">'<!-- <sCrIpt> -- >'</script>BAR
335340
(1,61): expected-named-closing-tag-but-got-eof
336341
#new-errors
337342
(1:1) missing-doctype
343+
(1:62) eof-in-element-that-can-contain-only-text
338344
(1:62) eof-in-script-html-comment-like-text
339345
#document
340346
| <html>
@@ -353,6 +359,7 @@ FOO<script type="text/plain">'<!-- <sCrIpt '</script>BAR
353359
(1,56): expected-named-closing-tag-but-got-eof
354360
#new-errors
355361
(1:1) missing-doctype
362+
(1:57) eof-in-element-that-can-contain-only-text
356363
(1:57) eof-in-script-html-comment-like-text
357364
#document
358365
| <html>
@@ -371,6 +378,7 @@ FOO<script type="text/plain">'<!-- <sCrIpt/'</script>BAR
371378
(1,56): expected-named-closing-tag-but-got-eof
372379
#new-errors
373380
(1:1) missing-doctype
381+
(1:57) eof-in-element-that-can-contain-only-text
374382
(1:57) eof-in-script-html-comment-like-text
375383
#document
376384
| <html>

tree-construction/template.dat

+4
Original file line numberDiff line numberDiff line change
@@ -1579,6 +1579,7 @@ eof in template
15791579
eof in template
15801580
#new-errors
15811581
(1:1) missing-doctype
1582+
(1:34) eof-in-element-that-can-contain-only-text
15821583
#document
15831584
| <html>
15841585
| <head>
@@ -1599,6 +1600,7 @@ eof in template
15991600
eof in template
16001601
#new-errors
16011602
(1:1) missing-doctype
1603+
(1:33) eof-in-element-that-can-contain-only-text
16021604
#document
16031605
| <html>
16041606
| <head>
@@ -1797,6 +1799,8 @@ eof script
17971799
eof template
17981800
eof template
17991801
eof table
1802+
#new-errors
1803+
(1:72) eof-in-element-that-can-contain-only-text
18001804
#document
18011805
| <!DOCTYPE html>
18021806
| <html>

tree-construction/tests1.dat

+2
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,8 @@ Line1<br>Line2<br>Line3<br>Line4
760760
<!DOCTYPE html><style> EOF
761761
#errors
762762
(1,26): expected-named-closing-tag-but-got-eof
763+
#new-errors
764+
(1:27) eof-in-element-that-can-contain-only-text
763765
#document
764766
| <!DOCTYPE html>
765767
| <html>

tree-construction/tests15.dat

+1
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@
199199
(1,99): eof-in-frameset
200200
#new-errors
201201
(1:1) missing-doctype
202+
(1:100) eof-in-element-that-can-contain-only-text
202203
#document
203204
| <html>
204205
| <head>

0 commit comments

Comments
 (0)