Skip to content

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Jul 10, 2015

According to the W3C DOM Core Level 3 specification DOMElement::nodeValue is
supposed to yield null
, but currently the DOM extension yield the result of
calling xmlNodeGetContent(), what is the concatenation of the values of the
children of the element. This patch fixes the non standard behavior.

Due to the obvious BC break it might be best to apply the patch only against master (i.e. PHP 7).

According to the W3C DOM Core Level 3 specification DOMElement::nodeValue is
supposed to yield null, but currently the DOM extension yield the result of
calling xmlNodeGetContent(), what is the concatenation of the values of the
children of the element. This patch fixes the non standard behavior.
@laruence laruence added the Bug label Jul 13, 2015
@php-pulls
Copy link

Comment on behalf of cmb at php.net:

Applied.

@php-pulls php-pulls closed this Sep 5, 2015
@cmb69 cmb69 deleted the domelement-nodevalue branch September 5, 2015 00:04
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.

3 participants