W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2000

Comments on Document Object Model Range

From: Elena Litani <hlitani@jtcsv.com>
Date: Thu, 02 Nov 2000 11:06:14 -0500
Message-ID: <3A0190F6.F2DF05C7@jtcsv.com>
To: www-dom@w3.org

I have been looking at Inserting Content (2.9) Range specs (Sept

When inserting node in a TEXT node, specs says:
"If the start boundary point of the Range is in a Text node, the
insertNode operation splits the Text node at the boundary point. If the
node to be inserted is also a Text node, the resulting adjacent Text
nodes are not normalized automatically; this operation is left to the

However, what happens if the start offset of start boundary point is 0?
There is nothing to split there! If we do indeed split the Text node, we
end up with: 
EMPTY text node->inserted Node->the Original TEXT node

From specifications this is not 'crystal' clear that this IS the case. 

As far as I understand, it is too late to change specifications. 
So for now, a small clarification in text would be appreciated.
Something like: 'You might end up with and EMPTY text node." So that
user can consider this case too, while normalizing text nodes.

However, I hope that this point could be addressed in a future
discussions, because, this is pretty inefficient to be left with EMPTY
TEXT node just because of the insertion...

Thank you,
Elena Litani
Received on Thursday, 2 November 2000 11:05:55 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:07 UTC