php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #37546 DOMDocumentFragment->appendXML namespace support
Submitted: 2006-05-21 18:38 UTC Modified: 2011-02-21 21:26 UTC
Votes:10
Avg. Score:4.4 ± 0.8
Reproduced:8 of 8 (100.0%)
Same Version:2 (25.0%)
Same OS:2 (25.0%)
From: spam01 at pornel dot net Assigned:
Status: Open Package: DOM XML related
PHP Version: 6CVS-2006-05-21 (snap) OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: spam01 at pornel dot net
New email:
PHP Version: OS:

 

 [2006-05-21 18:38 UTC] spam01 at pornel dot net
Description:
------------
DOMDocumentFragment->appendXML() creates elements in default namespace (if they don't have namespace set explictly, ofcourse).

However elements in XML fragments may just rely on namespace being set on parent element and don't  define their own namespace, so it would be very useful it if was possible to specify implied namespace, eg.

$fragment->appendXML('<p>test</p>',"http://www.w3.org/1999/xhtml");

should be equivalent to

$fragment->appendXML('<p xmlns="http://www.w3.org/1999/xhtml">test</p>');



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-21 21:26 UTC] jani@php.net
-Package: Feature/Change Request +Package: DOM XML related
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Sep 29 13:05:52 2022 UTC