Skip to content

Fixes Node.normalize() losing taints#273

Merged
leeN merged 1 commit into
SAP:mainfrom
leeN:node-normalize-taint
Mar 18, 2025
Merged

Fixes Node.normalize() losing taints#273
leeN merged 1 commit into
SAP:mainfrom
leeN:node-normalize-taint

Conversation

@leeN

@leeN leeN commented Mar 18, 2025

Copy link
Copy Markdown
Collaborator

If a DOM node has several text child nodes that are direct siblings, it is possible to merge them by calling normalize(). Prior to this change only the taint status of the first text node was considered and the remaining text nodes lost theirs.

This PR fixes this and adds a test case.

If a DOM node has several text child nodes that are direct siblings, it is possible to merge them by calling [normalize()](https://developer.mozilla.org/en-US/docs/Web/API/Node/normalize). Prior to this change only the taint status of the first text node was considered and the remaining text nodes lost theirs. This PR fixes this and adds a test case.
@leeN leeN merged commit d5957fe into SAP:main Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants