Skip to content

Fix parent check and viable next sibling search for replaceWith #11888

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

Closed
wants to merge 2 commits into from

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented Aug 5, 2023

I can land the parent check fix in master for the BC.

Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM from my very basic understanding of the DOM spec

@@ -545,21 +545,39 @@ void dom_child_node_remove(dom_object *context)

void dom_child_replace_with(dom_object *context, zval *nodes, int nodesc)
{
/* Spec link: https://dom.spec.whatwg.org/#dom-childnode-replacewith*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit:

Suggested change
/* Spec link: https://dom.spec.whatwg.org/#dom-childnode-replacewith*/
/* Spec link: https://dom.spec.whatwg.org/#dom-childnode-replacewith */

@@ -0,0 +1,36 @@
--TEST--
replaceWith() with a non-variable next sibling
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit:

Suggested change
replaceWith() with a non-variable next sibling
replaceWith() with a non-viable next sibling

@nielsdos nielsdos closed this in 815b5ad Aug 7, 2023
nielsdos added a commit that referenced this pull request Aug 7, 2023
jorgsowa pushed a commit to jorgsowa/php-src that referenced this pull request Aug 16, 2023
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