-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Assertion failure in ext/dom/parentnode/tree.c #16151
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
Labels
Comments
Problem is that the constraints of the DOM tree are broken because a comment is inserted as a child of an attribute, this should not be possible. This is because the old DOM doesn't follow spec, bleh |
nielsdos
added a commit
to nielsdos/php-src
that referenced
this issue
Oct 1, 2024
Unfortunately, old DOM allows attributes to be used as parent nodes. Only text nodes and entities are allowed as children for these types of nodes, because that's the constraint DOM and libxml give us.
nielsdos
added a commit
that referenced
this issue
Oct 1, 2024
* PHP-8.2: Fix GH-16151: Assertion failure in ext/dom/parentnode/tree.c
nielsdos
added a commit
that referenced
this issue
Oct 1, 2024
* PHP-8.3: Fix GH-16151: Assertion failure in ext/dom/parentnode/tree.c
nielsdos
added a commit
that referenced
this issue
Oct 1, 2024
* PHP-8.4: Fix GH-16151: Assertion failure in ext/dom/parentnode/tree.c
jorgsowa
pushed a commit
to jorgsowa/php-src
that referenced
this issue
Oct 1, 2024
Unfortunately, old DOM allows attributes to be used as parent nodes. Only text nodes and entities are allowed as children for these types of nodes, because that's the constraint DOM and libxml give us. Closes phpGH-16156.
jorgsowa
pushed a commit
to jorgsowa/php-src
that referenced
this issue
Oct 1, 2024
Unfortunately, old DOM allows attributes to be used as parent nodes. Only text nodes and entities are allowed as children for these types of nodes, because that's the constraint DOM and libxml give us. Closes phpGH-16156.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The following code:
Resulted in this output:
But I expected this output instead:
PHP Version
PHP 8.4.0-dev
Operating System
No response
The text was updated successfully, but these errors were encountered: