Message1748

Author amak
Recipients
Date 2007-07-20.18:33:06
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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
History
Date User Action Args
2008-02-20 17:17:55adminlinkissue1757419 messages
2008-02-20 17:17:55admincreate