W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2007

[Bug 4171] Merging adjacent text nodes and node identity

From: <bugzilla@wiggum.w3.org>
Date: Wed, 10 Jan 2007 22:33:08 +0000
To: public-qt-comments@w3.org
Message-Id: <E1H4m0K-0000ls-7h@wiggum.w3.org>


------- Comment #1 from andrew.eisenberg@us.ibm.com  2007-01-10 22:33 -------
We've tackled this once is bug 2983. In section 3.2.2 upd:applyUpdates,
Semantics, bullet 3, we now say,

"If, as a net result of the above steps, the children property of some node
contains adjacent text nodes, these adjacent text nodes are merged into a
single text node. The string-value of the resulting text node is the
concatenated string-values of the adjacent text nodes, with no intervening
space added. The nodeid of the resulting text node is

In my opinion, this is a somewhat loose statement. One implementation might
create a new text node, with new identity, as a result of the merge, and the
disconnect the original text nodes from their parent node. Another
implementation might add the content of the second text node to the first text
node, and then disconnect the second text node from its parent node.
Received on Wednesday, 10 January 2007 22:33:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:17 UTC