#23326 [Com]: DomNode->append_child() does not append attribute nodes

From: Date: Fri, 22 Aug 2003 18:18:09 +0000
Subject: #23326 [Com]: DomNode->append_child() does not append attribute nodes
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969356077@lists.php.net to get a copy of this message
ID: 23326 Comment by: p0wer at bojko dot krakow dot pl 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: Does not work for 4.3.3RC3 on Linux (Debian Sid) either. Previous Comments: ------------------------------------------------------------------------ [2003-04-25 04:17:25] markus dot pfefferle at web dot de Forgot the entry that I'm refering to: http://www.php.net/manual/en/function.domdocument-create-attribute.php ------------------------------------------------------------------------ [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

« previous php.doc (#969356077) next »