ID:               48502
 Updated by:       ras...@php.net
 Reported By:      trex6 at mail dot ru
-Status:           Open
+Status:           Bogus
 Bug Type:         DOM XML related
 Operating System: GNU/Linux
 PHP Version:      5.2.9
 New Comment:

If you use saveXML() it does.  If you use saveHTML(), it doesn't
because that is how it is supposed to be in HTML.  If you want XHTML,
use saveXML()


Previous Comments:
------------------------------------------------------------------------

[2009-06-09 05:35:39] trex6 at mail dot ru

Description:
------------
I want add img element to my xml document.

Reproduce code:
---------------
$imgPic = new DOMElement("img");
$ParentElement->appendChild($imgPic);
$imgPic->setAttribute("src","./1.jpg");


Expected result:
----------------
<img src="./1.jpg" />

Actual result:
--------------
<img src="./1.jpg">
Script doesn`t generate closled '/' for tag img.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48502&edit=1

Reply via email to