|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-07-30 04:23 UTC] jw at shapers dot 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 14:00:01 2025 UTC |
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