Bug #12463 Updated: set_attribute($attName, "0") does not add attributes
| From: | jw at shapers dot nl | Date: | Mon, 30 Jul 2001 08:42:09 +0000 |
| Subject: | Bug #12463 Updated: set_attribute($attName, "0") does not add attributes | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-61511@lists.php.net to get a copy of this message | ||
ID: 12463
User updated by: jw@shapers.nl
Reported By: jw@shapers.nl
Status: Open
Bug Type: DOM XML related
Operating System: Win2K
PHP Version: 4.0.6
New Comment:
When I try to add an attribute with value "0" to a DomNode, like this:
$cNode->set_attribute("attributeName", "0");
The attribute isn't added, and worse, any attributes added to this node later won't be
added aswell. But this does only happen when the zero-valuead attribute isn't the first one
added.
JW
Previous Comments:
------------------------------------------------------------------------
[2001-07-30 04:23:27] jw@shapers.nl
When I try to add an attribute with value "0" to a DomNode, like this:
$cNode->set_attribute("attributeName", "0");
The attribute isn't added, and worse, any attributes added to this node later won't be
added aswell. I'll see if I can add a short reproducing script later.
JW
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12463&edit=1