Skip to content

Prevent cyclic node mutations - #2558

Merged
jhy merged 1 commit into
masterfrom
node-cycle-guard
Aug 10, 2026
Merged

jhy merged 1 commit into
masterfrom
node-cycle-guard

Conversation

@jhy

@jhy jhy commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Node insertion and replacement methods now reject changes that would place a node beneath itself or one of its descendants, creating a cycle. Bulk mutations are checked before any changes are made, so a rejected operation leaves the tree unchanged.

Fixes #2552

Node insertion and replacement methods now reject changes that would place a node beneath itself or one of its descendants, creating a cycle. Bulk mutations are checked before any changes are made, so a rejected operation leaves the tree unchanged.
@jhy
jhy merged commit e87be9d into master Aug 10, 2026
22 checks passed
@jhy
jhy deleted the node-cycle-guard branch August 10, 2026 00:02
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.

Element.appendChild allows self-parenting and creates a cyclic DOM tree

1 participant