2828
2929 < h1 id =cssom-view-module > CSSOM View Module</ h1 >
3030
31- < h2 class ="no-num no-toc " id =w3c-doctype > Editor's Draft 9 April 2008</ h2 >
31+ < h2 class ="no-num no-toc " id =w3c-doctype > Editor's Draft 24 April 2008</ h2 >
3232
3333 < dl >
3434 < dt > This Version:
3535
3636 < dd > < a
37- href ="http://www.w3.org/TR/2008/ED-cssom-view-20080409 / "> http://www.w3.org/TR/2008/ED-cssom-view-20080409 /</ a >
37+ href ="http://www.w3.org/TR/2008/ED-cssom-view-20080424 / "> http://www.w3.org/TR/2008/ED-cssom-view-20080424 /</ a >
3838
3939 < dt > Latest Version:
4040
@@ -549,7 +549,8 @@ <h2 id=the-documentview-interface><span class=secno>6. </span>The <code
549549
550550 < pre class =idl > interface < dfn id =documentview > DocumentView</ dfn > {
551551 readonly attribute < a href ="#abstractview "> AbstractView</ a > < a href ="#documentview-defaultview "> defaultView</ a > ;
552- Element < a href ="#documentview-elementfrompoint "> elementFromPoint</ a > (in unsigned long < var title =""> x</ var > , in unsigned long < var title =""> y</ var > );
552+ Element < a href ="#documentview-elementfrompoint "> elementFromPoint</ a > (in float < var title =""> x</ var > , in float < var title =""> y</ var > );
553+ Range < a href ="#documentview-caretrangefrompoint "> caretRangeFromPoint</ a > (in float < var title =""> x</ var > , in float < var title =""> y</ var > );
553554};</ pre >
554555
555556 < p > The < dfn id =documentview-defaultview > < code > defaultView</ code > </ dfn >
@@ -570,10 +571,27 @@ <h2 id=the-documentview-interface><span class=secno>6. </span>The <code
570571 than the < a href ="#viewport "> viewport</ a > height, the method < em
571572 class =ct > must</ em > return < code > null</ code > . If there is no element at the
572573 given position the method < em class =ct > must</ em > return the root element,
573- if any, or < code > null</ code > otherwise.
574+ if any, or < code > null</ code > otherwise. [< cite > < a
575+ href ="#ref-dom2tr "> DOM2TR</ a > </ cite > ]
576+
577+ < p > The < dfn id =documentview-caretrangefrompoint
578+ title =caretrangefrompoint > < code > caretRangeFromPoint(< var title =""> x</ var > ,
579+ < var title =""> y</ var > )</ code > </ dfn > method, when invoked, < em
580+ class =ct > must</ em > return an empty text range for the position where a
581+ text insertion point indicator would have been placed if editing was
582+ enabled and hit testing was performed at the coordinates
583+ < var > x</ var > ,< var > y</ var > in the < a href ="#viewport "> viewport</ a > . If
584+ either argument is negative, < var title =""> x</ var > is greater than the < a
585+ href ="#viewport "> viewport</ a > width, < var title =""> y</ var > is greather
586+ than the < a href ="#viewport "> viewport</ a > height, or editing is not
587+ supported, the method < em class =ct > must</ em > return < code > null</ code > .
574588
575589 < p class =note > The specifics of hit testing are out of scope of this
576- specification. Hit testing might be defined in a future revision of CSS or
590+ specification and therefore the exact details of < code > < a
591+ href ="#documentview-elementfrompoint "> elementFromPoint()</ a > </ code > and
592+ < code > < a
593+ href ="#documentview-caretrangefrompoint "> caretRangeFromPoint()</ a > </ code >
594+ are too. Hit testing might be defined in a future revision of CSS or
577595 HTML 5.
578596
579597 < h2 id =the-elementview-interface > < span class =secno > 7. </ span > The < code
0 commit comments