x/net/html: self closing tags with unquoted attributes mistake trailing slashes as attribute values #64330
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Hi there,
here is a playground link, but I can summarize:
This piece of HTML:
Gets correctly parsed by the tokenizer as being a self-closing tag.
This means that the last slash is part of the tag, not of the
src
attribute.But if you run the playground code, you get this:
So the trailing slash is both interpreted as the closing tag and as the attribute value.
The correct parsing should be to have the attribute value to be "/foo", not "/foo/".
EDIT
This also affect "Parse", so parsing and rendering the above example renders it as
playground
The text was updated successfully, but these errors were encountered: