#34997 [Opn->Fbk]: nodeValue is set when should be null
| From: | tony2001@php.net | Date: | Wed, 26 Oct 2005 22:39:23 +0000 |
| Subject: | #34997 [Opn->Fbk]: nodeValue is set when should be null | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-87116@lists.php.net to get a copy of this message | ||
ID: 34997
Updated by: tony2001@php.net
Reported By: php dot net at punk dot co dot nz
-Status: Open
+Status: Feedback
Bug Type: DOM XML related
Operating System: Windows XP
PHP Version: 5.0.5
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-10-27 00:37:58] php dot net at punk dot co dot nz
Description:
------------
The nodeValue attribute appears to be set to the concatenation of the
contents of all child text nodes.
As far as I understand according to the specification (p36,
DOM2-Core.pdf, w3.org) the nodeValue should be set to NULL for Element
node types (and many other node types).
This may be a problem for other node types as well.
Reproduce code:
---------------
http://www.punk.co.nz/php.net/nodeValue-test.zip
Includes a sample xml file and output.txt.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34997&edit=1