commit fe9f8d9a (HEAD -> flavorjones-select-fixes) Author: Mike Dalessio Date: 2024-10-16 16:42:37 -0400 Fixes to the proposed tests at html5lib/html5lib-tests#178 diff --git a/tree-construction/menuitem-element.dat b/tree-construction/menuitem-element.dat index 29291c4c..f7c8e2c3 100644 --- a/tree-construction/menuitem-element.dat +++ b/tree-construction/menuitem-element.dat @@ -161,6 +161,7 @@ #data #errors +1:34: ERROR: End tag 'select' isn't allowed here. Currently open tags: html, body, select, menuitem. #document | | diff --git a/tree-construction/tables01.dat b/tree-construction/tables01.dat index aa7915eb..40798881 100644 --- a/tree-construction/tables01.dat +++ b/tree-construction/tables01.dat @@ -100,8 +100,11 @@ #data
#errors -(1,7): expected-doctype-but-got-start-tag -(1,15): unexpected-start-tag-implies-table-voodoo +1:1: ERROR: Expected a doctype token +1:8: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, table. +1:16: ERROR: Start tag 'option' isn't allowed here. Currently open tags: html, body, table, select. +1:24: ERROR: Character tokens aren't legal here +1:25: ERROR: End tag 'select' isn't allowed here. Currently open tags: html, body, table, select, option. #document | | @@ -114,12 +117,11 @@ #data
#errors -(1,7): expected-doctype-but-got-start-tag -(1,15): unexpected-start-tag-implies-table-voodoo -(1,22): unexpected-table-element-start-tag-in-select-in-table -(1,22): unexpected-start-tag-implies-end-tag -(1,39): unexpected-end-tag -(1,47): unexpected-end-tag +1:1: ERROR: Expected a doctype token +1:8: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, table. +1:16: ERROR: Start tag 'table' isn't allowed here. Currently open tags: html, body, table, select. +1:31: ERROR: End tag 'select' isn't allowed here. Currently open tags: html, body. +1:40: ERROR: End tag 'table' isn't allowed here. Currently open tags: html, body. #document | | @@ -131,9 +133,8 @@ #data
#errors -(1,7): expected-doctype-but-got-start-tag -(1,15): unexpected-start-tag-implies-table-voodoo -(1,23): unexpected-table-element-end-tag-in-select-in-table +1:1: ERROR: Expected a doctype token +1:8: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, table. #document | | @@ -144,9 +145,10 @@ #data
B
#errors -(1,7): expected-doctype-but-got-start-tag -(1,15): unexpected-start-tag-implies-table-voodoo -(1,28): unexpected-table-element-start-tag-in-select-in-table +1:1: ERROR: Expected a doctype token +1:8: ERROR: Start tag 'select' isn't allowed here. Currently open tags: html, body, table. +1:16: ERROR: Start tag 'option' isn't allowed here. Currently open tags: html, body, table, select. +1:24: ERROR: Character tokens aren't legal here #document | | @@ -292,7 +294,6 @@ 1:13: 'svg' tag isn't allowed here. Currently open tags: html, body, div, table. 1:33: 'select' tag isn't allowed here. Currently open tags: html, body, div, table, svg, foreignobject. 1:41: 'table' tag isn't allowed here. Currently open tags: html, body, div, table, svg, foreignobject, select. -1:41: 'table' tag isn't allowed here. Currently open tags: html, body, div, table, svg, foreignobject. 1:48: 's' tag isn't allowed here. Currently open tags: html, body, div, table. 1:51: Premature end of file. Currently open tags: html, body, div, table, s. #document diff --git a/tree-construction/tests1.dat b/tree-construction/tests1.dat index 63446c38..076fd53e 100644 --- a/tree-construction/tests1.dat +++ b/tree-construction/tests1.dat @@ -355,6 +355,10 @@ Line1
Line2
Line3
Line4 #data