note 74022 deleted from function.domdocument-create-element by bobby
| From: | bobby@php.net | Date: | Wed, 21 Mar 2007 14:55:43 +0000 |
| Subject: | note 74022 deleted from function.domdocument-create-element by bobby | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-124669@lists.php.net to get a copy of this message | ||
Note Submitter: bjb6371 at rit dot edu
----
When creating a new element such that
$newElement = $dom->create_element ( "string" );
and passing it through print_r it outputs the indexes "type", "tagname", 0, and
1
If I pass a node obtained through $dom->get_elements_by_tagname() into print_r it also outputs
the "attributes" and "children" indexes continuing down all child trees until
only leaf nodes remain
Why would creating a node not have either of these indexes, or rather, why would you still be able
to access appended children and still not have an index exist?