summaryrefslogtreecommitdiff
path: root/ext/dom/node.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2015-07-10 13:42:09 +0200
committerChristoph M. Becker <cmb@php.net>2015-09-05 01:52:41 +0200
commit25a52d98d7cb2d4f3b3636eac45c71a1ae03c760 (patch)
treea007f0bb1691dd0b176286d76568ab48bb6b0387 /ext/dom/node.c
parent3be54e12d5c85150c1a325b02f33a18a93190e15 (diff)
downloadphp-git-25a52d98d7cb2d4f3b3636eac45c71a1ae03c760.tar.gz
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.
Diffstat (limited to 'ext/dom/node.c')
-rw-r--r--ext/dom/node.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ext/dom/node.c b/ext/dom/node.c
index 2f35e0110b..08e4332a06 100644
--- a/ext/dom/node.c
+++ b/ext/dom/node.c
@@ -297,7 +297,6 @@ int dom_node_node_value_read(dom_object *obj, zval *retval)
switch (nodep->type) {
case XML_ATTRIBUTE_NODE:
case XML_TEXT_NODE:
- case XML_ELEMENT_NODE:
case XML_COMMENT_NODE:
case XML_CDATA_SECTION_NODE:
case XML_PI_NODE: