]> granicus.if.org Git - php/commit
Fix #70029: nodeValue of DOMElement list content of children nodes
authorChristoph M. Becker <cmbecker69@gmx.de>
Fri, 10 Jul 2015 11:42:09 +0000 (13:42 +0200)
committerChristoph M. Becker <cmb@php.net>
Fri, 4 Sep 2015 23:52:41 +0000 (01:52 +0200)
commit25a52d98d7cb2d4f3b3636eac45c71a1ae03c760
treea007f0bb1691dd0b176286d76568ab48bb6b0387
parent3be54e12d5c85150c1a325b02f33a18a93190e15
Fix #70029: nodeValue of DOMElement list content of children nodes

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.
ext/dom/node.c
ext/dom/tests/bug28721.phpt
ext/dom/tests/bug42082.phpt
ext/dom/tests/bug69846.phpt
ext/dom/tests/bug70029.phpt [new file with mode: 0644]
ext/dom/tests/dom001.phpt