note 18827 added to function.domxml-new-child

From: Date: Wed, 06 Feb 2002 22:23:48 +0000
Subject: note 18827 added to function.domxml-new-child
Groups: php.notes 
Request: Send a blank email to php-notes+get-26313@lists.php.net to get a copy of this message
There is a *large* bug in the the new_child() method! for instance, if i try to add a new node with content containing an entity like this, it will convert the entity to the original character. $bugItemNode->new_child( 'title', 'HtmlTagContainer&apos;s add() method does not accept strings as an argument.' ); But when you use $doc->dumpmem(), the output will be the following: ...<title>HtmlTagContainer's add() method does not accept strings as an argument.</title> Notice that it contains an apostrophe and it is NOT &apos;. This is a huge bug since it does not output wellformed XML files. Obviously, if you simply write the apostrophe character, it will do nothing to convert it to &apos; as well. This is serious and will hindle MANY applications. Developers, please fix this. -- http://www.php.net/manual/en/function.domxml-new-child.php http://master.php.net/manage/user-notes.php?action=edit+18827 http://master.php.net/manage/user-notes.php?action=delete+18827 http://master.php.net/manage/user-notes.php?action=reject+18827

« previous php.notes (#26313) next »