You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that HTML should be valid according to spec. MDN says that template is allowed inside every element that accepts phrasing content and buttons accept phrasing content.
Probably related to #2258.
Parsing the following HTML even with master (checked out 5d31cac at the moment), doesn't work:
I think that HTML should be valid according to spec. MDN says that
template
is allowed inside every element that accepts phrasing content and buttons accept phrasing content.I also put that snippet through https://validator.w3.org which passed:
Still it doesn't get parsed correctly. I added a test to
HtmlParserTest
. The test currently passes that way, which is incorrect:We can see that the inner button ends up being interpreted as a sibling of the outer button.
The text was updated successfully, but these errors were encountered: