[cssom-view] caretPositionFromPoint() and views

(The WebApps WG is bcc'ed since the changes were inspired by "them".)

Based on input from the WebApps WG and discussion at TPAC I made the  
following changes to the CSSOM View draft:

A) caretRangeFromPoint() has been replaced with caretPositionFromPoint().  
The latter also works for text input controls. I'm not a 100% sure whether  
<textarea> should be included there or not given that it does have a child  
text node. Any thoughts?

It's also a rough draft still. Suggestions for improvements are welcome.  
See also this thread:

   http://lists.w3.org/Archives/Public/public-webapps/2009OctDec/thread.html#msg124


B) The concept of views has been removed as has been discussed at TPAC.  
We'll add a note to DOM Level 2 Views soon to make it clear it should not  
be implemented in that way. See also this thread:

   http://lists.w3.org/Archives/Public/public-webapps/2009OctDec/thread.html#msg451


The latest draft can be found here:

   http://dev.w3.org/csswg/cssom-view/

Addressing the other outstanding issues might take a little longer.


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Tuesday, 17 November 2009 13:45:39 UTC