Req #37380 [Opn->Wfx]: DOMDocument->createAttribute[NS] can't set value
| From: | beberlei@php.net | Date: | Sun, 22 Sep 2019 21:31:08 +0000 |
| Subject: | Req #37380 [Opn->Wfx]: DOMDocument->createAttribute[NS] can't set value | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-222868@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=37380&edit=1
ID: 37380
Updated by: beberlei@php.net
Reported by: bjori@php.net
Summary: DOMDocument->createAttribute[NS] can't set value
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: DOM XML related
Operating System: *
PHP Version: 6CVS-2006-05-09 (CVS)
Block user comment: N
Private report: N
New Comment:
Even though createElement deviates from the spec, we should stay spec compliant here. Closing.
Previous Comments:
------------------------------------------------------------------------
[2006-05-09 12:06:09] bjori@php.net
and phpt for ->createAttribute():
http://php.is/bugs/dom/dom_create_attribute.phpt
------------------------------------------------------------------------
[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 https://bugs.php.net/bug.php?id=37380&edit=1