Skip to content

Fixed getElementsByTagNameNS not filtering on default namespace (bug #67474) #2267

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

aboks
Copy link
Contributor

@aboks aboks commented Jan 2, 2017

This bug was caused by the fact that dom_get_elements_by_tag_name_ns_raw
uses an empty string to filter on the default namespace (as NULL means
'no filter'), whereas in the node itself the default namespace is
signalled by nodep->ns being NULL.

aboks added 2 commits January 2, 2017 11:46
This bug was caused by the fact that dom_get_elements_by_tag_name_ns_raw
uses an empty string to filter on the default namespace (as NULL means
'no filter'), whereas in the node itself the default namespace is
signalled by nodep->ns being null.
@krakjoe krakjoe added the Bug label Jan 2, 2017
@krakjoe
Copy link
Member

krakjoe commented Jan 2, 2017

Merged a895592

Thanks :)

@krakjoe krakjoe closed this Jan 2, 2017
php-pulls pushed a commit that referenced this pull request Jan 2, 2017
php-pulls pushed a commit that referenced this pull request Jan 2, 2017
* PHP-7.0:
  news entry for PR #2267
  Fixed #67474 (getElementsByTagNameNS and default namespace)
  Add (failing) testcase for bug #67474
php-pulls pushed a commit that referenced this pull request Jan 2, 2017
php-pulls pushed a commit that referenced this pull request Jan 2, 2017
* PHP-7.1:
  news entry for PR #2267
  Fixed #67474 (getElementsByTagNameNS and default namespace)
  Add (failing) testcase for bug #67474
php-pulls pushed a commit that referenced this pull request Jan 2, 2017
@aboks aboks deleted the bug67474 branch January 2, 2017 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants