Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add support for ParentNode::$children #18908

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2025

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