parse5 icon indicating copy to clipboard operation
parse5 copied to clipboard

Noframes tag not parsed according to specification when in body

Open leeN opened this issue 2 years ago • 0 comments
trafficstars

Hello,

I found that parse5 does not adhere to the HTML specification when it comes to parsing the noframes tag outside of the head of a document.

According to the specification, when a noframes tag is encountered inside a document's body, it should be processed as if it was in head, i.e., with raw text content. Parse5 however seems to parse it as if it were a custom tag. For the other tags listed in the spec it behaves correctly, but noframes seems to be missing here

Example:

<r><noframes><math id="</noframes><b>should be outside of noframes</b>">

Explorer link.

In head mode the content of noframes should be parsed as raw text, that is the closing tag inside the id attribute of the math tag should close the opening noframes tag and the following b tag should be outside of noframes.

leeN avatar Jul 03 '23 12:07 leeN