#48502 [NEW]: Error in constructor for DOMElement
| From: | trex6 at mail dot ru | Date: | Tue, 09 Jun 2009 05:35:39 +0000 |
| Subject: | #48502 [NEW]: Error in constructor for DOMElement | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-138127@lists.php.net to get a copy of this message | ||
From: trex6 at mail dot ru
Operating system: GNU/Linux
PHP version: 5.2.9
PHP Bug Type: DOM XML related
Bug description: Error in constructor for DOMElement
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 bug report at http://bugs.php.net/?id=48502&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48502&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48502&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48502&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48502&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48502&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48502&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48502&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48502&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48502&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48502&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48502&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48502&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48502&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48502&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48502&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48502&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48502&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48502&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48502&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48502&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48502&r=mysqlcfg