Message1748
To comment further on DOMs having multiple nodes for a section of text:
This is the way that DOM is designed, and is essentially caused by SAX, which does not guarantee to deliver all text in the same event call, primarily reasons of buffering.
See the DOM method Node.normalize()
"""
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.
"""
http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1950641247
|
|
| Date |
User |
Action |
Args |
| 2008-02-20 17:17:55 | admin | link | issue1757419 messages |
| 2008-02-20 17:17:55 | admin | create | |
|