From 28f880e4ab2ee0cd89ebae51f4acbe46a8cb6fee Mon Sep 17 00:00:00 2001 From: Simon Pieters Date: Fri, 3 Feb 2017 11:19:59 +0100 Subject: [PATCH] Expect to parse like an unknown element Follows https://github.com/whatwg/html/pull/2319. --- tree-construction/menuitem-element.dat | 42 +++++++++++++++++++++----- 1 file changed, 35 insertions(+), 7 deletions(-) diff --git a/tree-construction/menuitem-element.dat b/tree-construction/menuitem-element.dat index 30693320..43aa0c67 100644 --- a/tree-construction/menuitem-element.dat +++ b/tree-construction/menuitem-element.dat @@ -2,6 +2,8 @@ #errors 10: Start tag seen without seeing a doctype first. Expected “”. +10: End of file seen and there were open elements. +10: Unclosed element “menuitem”. #document | | @@ -21,6 +23,8 @@ #data A #errors +32: End of file seen and there were open elements. +31: Unclosed element “menuitem”. #document | | @@ -32,6 +36,9 @@ #data AB #errors +43: End of file seen and there were open elements. +42: Unclosed element “menuitem”. +31: Unclosed element “menuitem”. #document | | @@ -39,12 +46,14 @@ | | | "A" -| -| "B" +| +| "B" #data AB #errors +46: End of file seen and there were open elements. +31: Unclosed element “menuitem”. #document | | @@ -52,12 +61,14 @@ | | | "A" -| -| "B" +| +| "B" #data A
B #errors +37: End of file seen and there were open elements. +31: Unclosed element “menuitem”. #document | | @@ -65,12 +76,14 @@ | | | "A" -|
-| "B" +|
+| "B" #data
  • #errors +33: End tag “li” implied, but there were open elements. +29: Unclosed element “menuitem”. #document | | @@ -84,6 +97,8 @@

    x #errors 39: Stray end tag “menuitem”. +40: End of file seen and there were open elements. +25: Unclosed element “menuitem”. #document | | @@ -99,6 +114,7 @@ 25: End tag “p” seen, but there were open elements. 21: Unclosed element “b”. 35: End of file seen and there were open elements. +35: Unclosed element “menuitem”. #document | | @@ -112,7 +128,7 @@ #data x #errors -40: End tag “menuitem” seen, but there were open elements. +42: End tag “menuitem” seen, but there were open elements. 31: Unclosed element “asdf”. #document | @@ -167,6 +183,8 @@ #data

    #errors +28: End of file seen and there were open elements. +25: Unclosed element “menuitem”. #document | | @@ -220,6 +246,8 @@ #data

  • #errors +29: End of file seen and there were open elements. +25: Unclosed element “menuitem”. #document | |