Skip to content

Conversation

@nielsdos
Copy link
Member

ParentNode::$children returns a HTMLCollection of all directly descendant child elements of a container.

I had to move around some properties such that the ParentNode property offsets are always at a fixed offset, to simplify the code. This also adds the necessary code to deal with GC cycles in HTMLCollections.
Furthermore, we also disable cloning a HTMLCollection as that never worked and furthermore it also conflicts with the [[SameObject]] WebIDL requirement of $children.

@nielsdos nielsdos force-pushed the dom-parentnode-children branch from 82221af to 91fed78 Compare June 26, 2025 19:44
ParentNode::$children returns a HTMLCollection of all directly
descendant child elements of a container.

I had to move around some properties such that the ParentNode property
offsets are always at a fixed offset, to simplify the code.
This also adds the necessary code to deal with GC cycles in
HTMLCollections.
Furthermore, we also disable cloning a HTMLCollection as that never
worked and furthermore it also conflicts with the [[SameObject]] WebIDL
requirement of $children.
@nielsdos nielsdos force-pushed the dom-parentnode-children branch from 91fed78 to ca53b21 Compare June 26, 2025 19:45
@nielsdos nielsdos merged commit c7c6a79 into php:master Jun 27, 2025
9 checks passed
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.

3 participants