#23326 [Opn]: DomNode->append_child() does not append attribute nodes
| From: | markus dot pfefferle at web dot de | Date: | Fri, 25 Apr 2003 09:17:25 +0000 |
| Subject: | #23326 [Opn]: DomNode->append_child() does not append attribute nodes | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969352848@lists.php.net to get a copy of this message | ||
ID: 23326
User updated by: markus dot pfefferle at web dot de
Reported By: markus dot pfefferle at web dot de
Status: Open
Bug Type: Documentation problem
Operating System: Windows 2000
PHP Version: 4CVS-2003-04-24 (stable)
New Comment:
Forgot the entry that I'm refering to:
http://www.php.net/manual/en/function.domdocument-create-attribute.php
Previous Comments:
------------------------------------------------------------------------
[2003-04-25 04:16:26] markus dot pfefferle at web dot de
How my daddy used to day:
"if it ain't implemented, don't document it!"
------------------------------------------------------------------------
[2003-04-25 03:59:02] chregu@php.net
isn't implemented
you have to use $element->set_attribute_node()
which only is available in CVS HEAD. You could try the php_domxml.dll
from the latest cvs-snapshot
------------------------------------------------------------------------
[2003-04-24 08:18:16] markus dot pfefferle at web dot de
This works:
$document = domxml_new_doc('1.0');
$test = $document->append_child($document->create_element('test'));
$test->set_attribute('key', 'value');
echo htmlspecialchars($document->dump_mem(1));
This does not:
$document = domxml_new_doc('1.0');
$test = $document->append_child($document->create_element('test'));
$test->append_child($document->create_attribute('key', 'value'));
echo htmlspecialchars($document->dump_mem(1));
Also doesn't work on 4.3.1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23326&edit=1