note 80724 added to ref.dom
| From: | Anonymous at osu1 dot php dot net | Date: | Wed, 30 Jan 2008 07:37:49 +0000 |
| Subject: | note 80724 added to ref.dom | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-135583@lists.php.net to get a copy of this message | ||
In response to...
"If you create your own custom element extending DOMElement and append him in place of the
document element, you cannot access to any new members newly defined in your custom class via
DOMDocument::$documentElement."
... it is not a bug, it is a feature. The DOMDocument::$documentElement property name may be
misleading but according to the DOM Level 2 Core specification it is a convenience attribute meant
to access the root element of your DOMDocument. See here: http://www.w3.org/TR/DOM-Level-2-Core/core.html#i-Document
----
Server IP: 80.81.171.181
Probable Submitter: 195.148.30.59
----
Manual Page -- http://www.php.net/manual/en/ref.dom.php
Edit -- https://master.php.net/note/edit/80724
Del: integrated -- https://master.php.net/note/delete/80724/integrated
Del: useless -- https://master.php.net/note/delete/80724/useless
Del: bad code -- https://master.php.net/note/delete/80724/bad+code
Del: spam -- https://master.php.net/note/delete/80724/spam
Del: non-english -- https://master.php.net/note/delete/80724/non-english
Del: in docs -- https://master.php.net/note/delete/80724/in+docs
Del: other reasons-- https://master.php.net/note/delete/80724
Reject -- https://master.php.net/note/reject/80724
Search -- https://master.php.net/manage/user-notes.php