#37380 [Opn]: DOMDocument->createAttribute[NS] can't set value
| From: | bjori@php.net | Date: | Tue, 09 May 2006 12:06:09 +0000 |
| Subject: | #37380 [Opn]: DOMDocument->createAttribute[NS] can't set value | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-96846@lists.php.net to get a copy of this message | ||
ID: 37380
User updated by: bjori@php.net
Reported By: bjori@php.net
Status: Open
Bug Type: Feature/Change Request
Operating System: *
PHP Version: 6CVS-2006-05-09 (CVS)
New Comment:
and phpt for ->createAttribute():
http://php.is/bugs/dom/dom_create_attribute.phpt
Previous Comments:
------------------------------------------------------------------------
[2006-05-09 12:04:25] bjori@php.net
Description:
------------
DOMDocument->createAttribute[NS] can't set attribute value
but DOMDocument->createElement[NS] and DOMAttr->__construct
can.
Patch:
http://php.is/bugs/dom/dom_document_create_attribute.default_value.patch.txt
phpt: http://php.is/bugs/dom/dom_create_attribute_ns.phpt
It "breaks" the W3 spec, but we already broke it with
allowing ->createElement[NS] to set the value.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37380&edit=1