ID:               29386
 Updated by:       [EMAIL PROTECTED]
 Reported By:      bugz at nagash dot org
-Status:           Open
+Status:           Feedback
 Bug Type:         DOM XML related
 Operating System: windows
 PHP Version:      5.0.0
 New Comment:

Works for me on Linux... Can someone revalidate that on windows?


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

[2004-07-26 12:06:59] bugz at nagash dot org

Description:
------------
result is unexpected

Reproduce code:
---------------
$doc = new DOMDocument("1.0");
$root = $doc->createElement("HTML");
$root = $doc->appendChild($root);
$head = $doc->createElement("HEAD");
$head = $root->appendChild($head);
$title = $doc->createElement("TITLE");
$title = $head->appendChild($title);
$text = $doc->createTextNode("This is the title");
$text = $title->appendChild($text);
echo $doc->saveXML();

Expected result:
----------------
<?xml version="1.0"?>
<HTML>
  <HEAD>
    <TITLE>
      This is the title
    </TITLE>
  </HEAD>
</HTML>


Actual result:
--------------
<?xml version="1.0"?>
<HTML />


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


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

Reply via email to