|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #37380 DOMDocument->createAttribute[NS] can't set value
Submitted: 2006-05-09 12:04 UTC Modified: 2019-09-22 21:31 UTC
Avg. Score:2.5 ± 0.9
Reproduced:1 of 2 (50.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: Assigned:
Status: Wont fix Package: DOM XML related
PHP Version: 6CVS-2006-05-09 (CVS) OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2006-05-09 12:04 UTC]
DOMDocument->createAttribute[NS] can't set attribute value
but DOMDocument->createElement[NS] and DOMAttr->__construct 


It "breaks" the W3 spec, but we already broke it with 
allowing ->createElement[NS] to set the value.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-09 12:06 UTC]
and phpt for ->createAttribute():
 [2011-02-21 21:26 UTC]
-Package: Feature/Change Request +Package: DOM XML related
 [2019-09-22 21:31 UTC]
-Status: Open +Status: Wont fix
 [2019-09-22 21:31 UTC]
Even though createElement deviates from the spec, we should stay spec compliant here. Closing.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Apr 02 10:03:46 2023 UTC