W3C home > Mailing lists > Public > www-style@w3.org > May 2011

Re: [CSSOM] CaretPosition

From: Olli Pettay <Olli.Pettay@helsinki.fi>
Date: Tue, 03 May 2011 12:18:28 +0300
Message-ID: <4DBFC864.8060705@helsinki.fi>
To: www-style@w3.org
On 05/03/2011 12:13 PM, Olli Pettay wrote:
> Hi all,
>
> I wonder what is the use case for CaretPosition.range.
> Is that mainly just a left-over from the old caretRangeFromPoint?
> If the range is really needed, it would be trivial to
> create one using CaretPosition.offsetNode and CaretPosition.offset.
>
> So, could we drop CaretPosition.range, before it gets implemented.

especially because 
http://dev.w3.org/csswg/cssom-view/#dom-document-caretpositionfrompoint 
is tiny bit inconsistent because of that
range object. .range may or may not be null depending on which
coordinates are used.


>
>
> -Olli
Received on Tuesday, 3 May 2011 09:18:53 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:40 GMT