note 45857 deleted from function.dom-domdocument-normalize by tomsommer
| From: | tomsommer@php.net | Date: | Wed, 22 Sep 2004 19:33:14 +0000 |
| Subject: | note 45857 deleted from function.dom-domdocument-normalize by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-77203@lists.php.net to get a copy of this message | ||
Note Submitter: gem at rellim dot com
----
Here is the DOM2 descrtiption of normalize:
normalize modified in DOM Level 2
Puts all Text nodes in the full depth of the sub-tree underneath this Node, including attribute
nodes, into a "normal" form where only structure (e.g., elements, comments, processing
instructions, CDATA sections, and entity references) separates Text nodes, i.e., there are neither
adjacent Text nodes nor empty Text nodes. This can be used to ensure that the DOM view of a
document is the same as if it were saved and re-loaded, and is useful when operations (such as
XPointer [XPointer] lookups) that depend on a particular document tree structure are to be used.
Note: In cases where the document contains CDATASections, the normalize operation alone may not
be sufficient, since XPointers do not differentiate between Text nodes and CDATASection nodes.
No Parameters
No Return Value
No Exceptions