Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fbf5494

Browse filesBrowse files
committed
Fixes to the proposed tests at html5lib#178
1 parent 3b99f70 commit fbf5494
Copy full SHA for fbf5494

File tree

Expand file treeCollapse file tree

12 files changed

+138
-38
lines changed
Filter options
Expand file treeCollapse file tree

12 files changed

+138
-38
lines changed

‎tree-construction/menuitem-element.dat

Copy file name to clipboardExpand all lines: tree-construction/menuitem-element.dat
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@
161161
#data
162162
<!DOCTYPE html><select><menuitem></select>
163163
#errors
164+
1:34: ERROR: End tag 'select' isn't allowed here. Currently open tags: html, body, select, menuitem.
164165
#document
165166
| <!DOCTYPE html>
166167
| <html>

‎tree-construction/tables01.dat

Copy file name to clipboardExpand all lines: tree-construction/tables01.dat
+16-15Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,11 @@
100100
#data
101101
<table><select><option>3</select></table>
102102
#errors
103-
(1,7): expected-doctype-but-got-start-tag
104-
(1,15): unexpected-start-tag-implies-table-voodoo
103+
1:1: ERROR: Expected a doctype token
104+
1:8: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, table.
105+
1:16: ERROR: Start tag 'option' isn't allowed here. Currently open tags: html, body, table, select.
106+
1:24: ERROR: Character tokens aren't legal here
107+
1:25: ERROR: End tag 'select' isn't allowed here. Currently open tags: html, body, table, select, option.
105108
#document
106109
| <html>
107110
| <head>
@@ -114,12 +117,11 @@
114117
#data
115118
<table><select><table></table></select></table>
116119
#errors
117-
(1,7): expected-doctype-but-got-start-tag
118-
(1,15): unexpected-start-tag-implies-table-voodoo
119-
(1,22): unexpected-table-element-start-tag-in-select-in-table
120-
(1,22): unexpected-start-tag-implies-end-tag
121-
(1,39): unexpected-end-tag
122-
(1,47): unexpected-end-tag
120+
1:1: ERROR: Expected a doctype token
121+
1:8: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, table.
122+
1:16: ERROR: Start tag 'table' isn't allowed here. Currently open tags: html, body, table, select.
123+
1:31: ERROR: End tag 'select' isn't allowed here. Currently open tags: html, body.
124+
1:40: ERROR: End tag 'table' isn't allowed here. Currently open tags: html, body.
123125
#document
124126
| <html>
125127
| <head>
@@ -131,9 +133,8 @@
131133
#data
132134
<table><select></table>
133135
#errors
134-
(1,7): expected-doctype-but-got-start-tag
135-
(1,15): unexpected-start-tag-implies-table-voodoo
136-
(1,23): unexpected-table-element-end-tag-in-select-in-table
136+
1:1: ERROR: Expected a doctype token
137+
1:8: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, table.
137138
#document
138139
| <html>
139140
| <head>
@@ -144,9 +145,10 @@
144145
#data
145146
<table><select><option>A<tr><td>B</td></tr></table>
146147
#errors
147-
(1,7): expected-doctype-but-got-start-tag
148-
(1,15): unexpected-start-tag-implies-table-voodoo
149-
(1,28): unexpected-table-element-start-tag-in-select-in-table
148+
1:1: ERROR: Expected a doctype token
149+
1:8: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, table.
150+
1:16: ERROR: Start tag 'option' isn't allowed here. Currently open tags: html, body, table, select.
151+
1:24: ERROR: Character tokens aren't legal here
150152
#document
151153
| <html>
152154
| <head>
@@ -292,7 +294,6 @@
292294
1:13: 'svg' tag isn't allowed here. Currently open tags: html, body, div, table.
293295
1:33: 'select' tag isn't allowed here. Currently open tags: html, body, div, table, svg, foreignobject.
294296
1:41: 'table' tag isn't allowed here. Currently open tags: html, body, div, table, svg, foreignobject, select.
295-
1:41: 'table' tag isn't allowed here. Currently open tags: html, body, div, table, svg, foreignobject.
296297
1:48: 's' tag isn't allowed here. Currently open tags: html, body, div, table.
297298
1:51: Premature end of file. Currently open tags: html, body, div, table, s.
298299
#document

‎tree-construction/tests1.dat

Copy file name to clipboardExpand all lines: tree-construction/tests1.dat
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,10 @@ Line1<br>Line2<br>Line3<br>Line4
355355
#data
356356
<select><b><option><select><option></b></select>X
357357
#errors
358+
1:1: ERROR: Expected a doctype token
359+
1:20: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, select, b, option.
360+
1:36: ERROR: End tag 'b' isn't allowed here. Currently open tags: html, body, b, select, option.
361+
1:50: ERROR: Premature end of file. Currently open tags: html, body, b.
358362
#document
359363
| <html>
360364
| <head>
@@ -1531,6 +1535,10 @@ Line1<br>Line2<br>Line3<br>Line4
15311535
#data
15321536
<select><b><option><select><option></b></select>
15331537
#errors
1538+
1:1: ERROR: Expected a doctype token
1539+
1:20: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, select, b, option.
1540+
1:36: ERROR: End tag 'b' isn't allowed here. Currently open tags: html, body, b, select, option.
1541+
1:49: ERROR: Premature end of file. Currently open tags: html, body, b.
15341542
#document
15351543
| <html>
15361544
| <head>

‎tree-construction/tests10.dat

Copy file name to clipboardExpand all lines: tree-construction/tests10.dat
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@
259259
#data
260260
<!DOCTYPE html><body><table><tr><td><select><svg><g>foo</g><g>bar</g><p>baz</table><p>quux
261261
#errors
262+
1:70: ERROR: Start tag 'p' isn't allowed here. Currently open tags: html, body, table, tbody, tr, td, select, svg.
263+
1:76: ERROR: End tag 'table' isn't allowed here. Currently open tags: html, body, table, tbody, tr, td, select.
262264
#document
263265
| <!DOCTYPE html>
264266
| <html>
@@ -282,6 +284,13 @@
282284
#data
283285
<!DOCTYPE html><body><table><select><svg><g>foo</g><g>bar</g><p>baz</table><p>quux
284286
#errors
287+
1:29: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, table.
288+
1:37: ERROR: Start tag 'svg' isn't allowed here. Currently open tags: html, body, table, select.
289+
1:62: ERROR: Start tag 'p' isn't allowed here. Currently open tags: html, body, table, select, svg.
290+
1:62: ERROR: Start tag 'p' isn't allowed here. Currently open tags: html, body, table, select.
291+
1:65: ERROR: Character tokens aren't legal here
292+
1:66: ERROR: Character tokens aren't legal here
293+
1:67: ERROR: Character tokens aren't legal here
285294
#document
286295
| <!DOCTYPE html>
287296
| <html>

‎tree-construction/tests17.dat

Copy file name to clipboardExpand all lines: tree-construction/tests17.dat
+4-6Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
#data
22
<!doctype html><table><tbody><select><tr>
33
#errors
4-
(1,37): unexpected-start-tag-implies-table-voodoo
5-
(1,41): unexpected-table-element-start-tag-in-select-in-table
6-
(1,41): eof-in-table
4+
(1,30): unexpected-start-tag
5+
(1,42): premature-eof
76
#document
87
| <!DOCTYPE html>
98
| <html>
@@ -17,9 +16,8 @@
1716
#data
1817
<!doctype html><table><tr><select><td>
1918
#errors
20-
(1,34): unexpected-start-tag-implies-table-voodoo
21-
(1,38): unexpected-table-element-start-tag-in-select-in-table
22-
(1,38): expected-closing-tag-but-got-eof
19+
(1,27): unexpected-start-tag
20+
(1,39): premature-eof
2321
#document
2422
| <!DOCTYPE html>
2523
| <html>

‎tree-construction/tests18.dat

Copy file name to clipboardExpand all lines: tree-construction/tests18.dat
+25-4Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@
227227
#data
228228
<!doctype html><select><plaintext></plaintext>X
229229
#errors
230+
1:48: ERROR: Premature end of file. Currently open tags: html, body, select, plaintext.
230231
#document
231232
| <!DOCTYPE html>
232233
| <html>
@@ -239,6 +240,20 @@
239240
#data
240241
<!doctype html><table><select><plaintext>a<caption>b
241242
#errors
243+
1:23: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, table.
244+
1:31: ERROR: Start tag 'plaintext' isn't allowed here. Currently open tags: html, body, table, select.
245+
1:42: ERROR: Character tokens aren't legal here
246+
1:43: ERROR: Character tokens aren't legal here
247+
1:44: ERROR: Character tokens aren't legal here
248+
1:45: ERROR: Character tokens aren't legal here
249+
1:46: ERROR: Character tokens aren't legal here
250+
1:47: ERROR: Character tokens aren't legal here
251+
1:48: ERROR: Character tokens aren't legal here
252+
1:49: ERROR: Character tokens aren't legal here
253+
1:50: ERROR: Character tokens aren't legal here
254+
1:51: ERROR: Character tokens aren't legal here
255+
1:52: ERROR: Character tokens aren't legal here
256+
1:53: ERROR: Premature end of file. Currently open tags: html, body, table, select, plaintext.
242257
#document
243258
| <!DOCTYPE html>
244259
| <html>
@@ -439,8 +454,11 @@
439454
#data
440455
<!doctype html><table><select><script></style></script>abc
441456
#errors
442-
(1,30): unexpected-start-tag-implies-table-voodoo
443-
(1,58): eof-in-select
457+
1:23: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, table.
458+
1:56: ERROR: Character tokens aren't legal here
459+
1:57: ERROR: Character tokens aren't legal here
460+
1:58: ERROR: Character tokens aren't legal here
461+
1:59: ERROR: Premature end of file. Currently open tags: html, body, table, select.
444462
#document
445463
| <!DOCTYPE html>
446464
| <html>
@@ -455,8 +473,11 @@
455473
#data
456474
<!doctype html><table><tr><select><script></style></script>abc
457475
#errors
458-
(1,34): unexpected-start-tag-implies-table-voodoo
459-
(1,62): eof-in-select
476+
1:27: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, table, tbody, tr.
477+
1:60: ERROR: Character tokens aren't legal here
478+
1:61: ERROR: Character tokens aren't legal here
479+
1:62: ERROR: Character tokens aren't legal here
480+
1:63: ERROR: Premature end of file. Currently open tags: html, body, table, tbody, tr, select.
460481
#document
461482
| <!DOCTYPE html>
462483
| <html>

‎tree-construction/tests2.dat

Copy file name to clipboardExpand all lines: tree-construction/tests2.dat
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,8 @@
500500
#data
501501
<!DOCTYPE html><select><optgroup><option></optgroup><option><select><option>
502502
#errors
503+
1:61: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, select, option.
504+
1:77: ERROR: Premature end of file. Currently open tags: html, body, select, option.
503505
#document
504506
| <!DOCTYPE html>
505507
| <html>

‎tree-construction/tests7.dat

Copy file name to clipboardExpand all lines: tree-construction/tests7.dat
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ X</listing>
200200
#data
201201
<!doctype html><select><input>X
202202
#errors
203+
1:32: ERROR: Premature end of file. Currently open tags: html, body, select.
203204
#document
204205
| <!DOCTYPE html>
205206
| <html>
@@ -212,6 +213,8 @@ X</listing>
212213
#data
213214
<!doctype html><select><select>X
214215
#errors
216+
1:24: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, select.
217+
1:33: ERROR: Premature end of file. Currently open tags: html, body, select.
215218
#document
216219
| <!DOCTYPE html>
217220
| <html>
@@ -442,6 +445,8 @@ A<table><tr> B</tr> </em>C</table>
442445
#data
443446
<select><keygen>
444447
#errors
448+
1:1: ERROR: Expected a doctype token
449+
1:17: ERROR: Premature end of file. Currently open tags: html, body, select.
445450
#document
446451
| <html>
447452
| <head>

‎tree-construction/tests9.dat

Copy file name to clipboardExpand all lines: tree-construction/tests9.dat
+15Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@
299299
#data
300300
<!DOCTYPE html><body><table><tr><td><select><math><mi>foo</mi><mi>bar</mi><p>baz</table><p>quux
301301
#errors
302+
1:75: ERROR: Start tag 'p' isn't allowed here. Currently open tags: html, body, table, tbody, tr, td, select, math.
303+
1:81: ERROR: End tag 'table' isn't allowed here. Currently open tags: html, body, table, tbody, tr, td, select.
302304
#document
303305
| <!DOCTYPE html>
304306
| <html>
@@ -322,6 +324,19 @@
322324
#data
323325
<!DOCTYPE html><body><table><select><math><mi>foo</mi><mi>bar</mi><p>baz</table><p>quux
324326
#errors
327+
1:29: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, table.
328+
1:37: ERROR: Start tag 'math' isn't allowed here. Currently open tags: html, body, table, select.
329+
1:47: ERROR: Character tokens aren't legal here
330+
1:48: ERROR: Character tokens aren't legal here
331+
1:49: ERROR: Character tokens aren't legal here
332+
1:59: ERROR: Character tokens aren't legal here
333+
1:60: ERROR: Character tokens aren't legal here
334+
1:61: ERROR: Character tokens aren't legal here
335+
1:67: ERROR: Start tag 'p' isn't allowed here. Currently open tags: html, body, table, select, math.
336+
1:67: ERROR: Start tag 'p' isn't allowed here. Currently open tags: html, body, table, select.
337+
1:70: ERROR: Character tokens aren't legal here
338+
1:71: ERROR: Character tokens aren't legal here
339+
1:72: ERROR: Character tokens aren't legal here
325340
#document
326341
| <!DOCTYPE html>
327342
| <html>

‎tree-construction/tests_innerHTML_1.dat

Copy file name to clipboardExpand all lines: tree-construction/tests_innerHTML_1.dat
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,7 @@ select
808808
#data
809809
<textarea><option>
810810
#errors
811+
1:19: ERROR: Premature end of file. Currently open tags: html, textarea.
811812
#document-fragment
812813
select
813814
#document

‎tree-construction/webkit01.dat

Copy file name to clipboardExpand all lines: tree-construction/webkit01.dat
+19-12Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,15 @@ no-doctype
437437
#data
438438
<select><option>A<select><option>B<select><option>C<select><option>D<select><option>E<select><option>F<select><option>G<select>
439439
#errors
440+
1:1: ERROR: Expected a doctype token
441+
1:18: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, select, option.
442+
1:35: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, select, option.
443+
1:52: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, select, option.
444+
1:69: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, select, option.
445+
1:86: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, select, option.
446+
1:103: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, select, option.
447+
1:120: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, select, option.
448+
1:128: ERROR: Premature end of file. Currently open tags: html, body, select.
440449
#document
441450
| <html>
442451
| <head>
@@ -527,12 +536,11 @@ no-doctype
527536
#data
528537
<kbd><table></kbd><col><select><tr>
529538
#errors
530-
(1,5): expected-doctype-but-got-start-tag
531-
(1,18): unexpected-end-tag-implies-table-voodoo
532-
(1,18): unexpected-end-tag
533-
(1,31): unexpected-start-tag-implies-table-voodoo
534-
(1,35): unexpected-table-element-start-tag-in-select-in-table
535-
(1,35): eof-in-table
539+
1:1: ERROR: Expected a doctype token
540+
1:13: ERROR: End tag 'kbd' isn't allowed here. Currently open tags: html, body, kbd, table.
541+
1:13: ERROR: End tag 'kbd' isn't allowed here. Currently open tags: html, body, kbd, table.
542+
1:24: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, kbd, table.
543+
1:36: ERROR: Premature end of file. Currently open tags: html, body, kbd, table, tbody, tr.
536544
#document
537545
| <html>
538546
| <head>
@@ -548,12 +556,11 @@ no-doctype
548556
#data
549557
<kbd><table></kbd><col><select><tr></table><div>
550558
#errors
551-
(1,5): expected-doctype-but-got-start-tag
552-
(1,18): unexpected-end-tag-implies-table-voodoo
553-
(1,18): unexpected-end-tag
554-
(1,31): unexpected-start-tag-implies-table-voodoo
555-
(1,35): unexpected-table-element-start-tag-in-select-in-table
556-
(1,48): expected-closing-tag-but-got-eof
559+
1:1: ERROR: Expected a doctype token
560+
1:13: ERROR: End tag 'kbd' isn't allowed here. Currently open tags: html, body, kbd, table.
561+
1:13: ERROR: End tag 'kbd' isn't allowed here. Currently open tags: html, body, kbd, table.
562+
1:24: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, kbd, table.
563+
1:49: ERROR: Premature end of file. Currently open tags: html, body, kbd, div.
557564
#document
558565
| <html>
559566
| <head>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.