Skip to content

Implement Node.hasChildNodes - #128

Merged
wieslawsoltes merged 0 commit into
review/code-oss-has-child-nodes-basefrom
fix/node-has-child-nodes
Sep 16, 2026
Merged

wieslawsoltes merged 0 commit into
review/code-oss-has-child-nodes-basefrom
fix/node-has-child-nodes

Conversation

@wieslawsoltes

Copy link
Copy Markdown
Collaborator

Problem and change

DOMPurify reached NodeIterator and then failed because Node.prototype.hasChildNodes was absent.

This change exposes the constant-time native child-container check through generated bindings and covers placement, receiver validation, live mutation behavior, product-neutral compatibility, and high-volume calls. The focused comparison is one commit across eight files.

Closes #84. Equivalent commit c36af158 is already in draft consolidation PR #76. This PR targets its recorded pre-fix review base for an isolated review and must remain open; do not merge it to main.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant