ID: 38823
User updated by: ladislav dot prosek at matfyz dot cz
Reported By: ladislav dot prosek at matfyz dot cz
-Status: Bogus
+Status: Open
Bug Type: DOM XML related
Operating System: Windows XP SP2 Pro
PHP Version: 5.1.6
New Comment:
Your XML is a bit rusty, isn't it? :))
Of course they do have data. What do you think is the string that you
pass to createComment?
Previous Comments:
------------------------------------------------------------------------
[2006-09-14 12:42:51] [EMAIL PROTECTED]
Comments do not have data, only text and cdata nodes have it.
------------------------------------------------------------------------
[2006-09-14 10:17:08] ladislav dot prosek at matfyz dot cz
Description:
------------
Calling appendData() on a DOMComment seems to have zero effect on the
comment.
Reproduce code:
---------------
<?
$doc = new DOMDocument;
$x = $doc->createComment("a");
$x->appendData("b");
echo $x->nodeValue;
?>
Expected result:
----------------
ab
Actual result:
--------------
a
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38823&edit=1