Skip to content

fix: Stop adding tags after incomplete closing tag#445

Merged
karfau merged 1 commit into
masterfrom
handle-incomplete-closing-tag
Oct 18, 2022
Merged

fix: Stop adding tags after incomplete closing tag#445
karfau merged 1 commit into
masterfrom
handle-incomplete-closing-tag

Conversation

@karfau

@karfau karfau commented Oct 18, 2022

Copy link
Copy Markdown
Member

Previously it was tested as a feature, that tags after incomplete closing tags would be part of the dom. The code responsible for this triggered a CodeQL error suspecting that it could lead to injection of a script tag.

BREAKING CHANGE: It no longer reports an error when parsing HTML containing incomplete closing tags, to align the behavior with the one in the browser.

BREAKING CHANGE: If your code relied on not well formed XML to be parsed and include subsequent tags, this will no longer work.

#416

Previously it was tested as a feature, that tags after incomplete closing tags would be part of the dom.
The code responsible for this triggered a CodeQL error suspecting that it could lead to injection of a `script` tag.

When parsing HTML there no longer an error being reported to align the behavior with the one in the browser.

BREAKING CHANGE: If your code relied on not well formed XML to be parsed and include subsequent tags, this will no longer work.

#416
@karfau karfau added bug Something isn't working xml:not well-formed https://www.w3.org/TR/xml11/#dt-wellformed Security breaking change Some thing that requires a version bump due to breaking changes error handling and removed Security labels Oct 18, 2022
@karfau karfau added this to the 0.9.0 milestone Oct 18, 2022
@karfau karfau merged commit 0dcec84 into master Oct 18, 2022
@karfau karfau deleted the handle-incomplete-closing-tag branch October 18, 2022 04:20
@ACN-kck

ACN-kck commented Oct 18, 2022

Copy link
Copy Markdown

Great stuff!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Some thing that requires a version bump due to breaking changes bug Something isn't working error handling xml:not well-formed https://www.w3.org/TR/xml11/#dt-wellformed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants