MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

Compare Revisions

Selection

Change Revisions

Revision 303383:

Revision 303383 by JeanDavidDaviet on

Revision 351779:

Revision 351779 by timdown on

Title:
Selection
Selection
Slug:
DOM/Selection
DOM/Selection
Tags:
"Gecko DOM Reference", "DOM", "NeedsTechnicalReview", "Gecko"
"Gecko DOM Reference", "DOM", "NeedsTechnicalReview", "Gecko"
Content:

Revision 303383
Revision 351779
n83        Returns the number of characters that the selection's ancn83        Returns a number representing the offset of the selection
>hor is offset within the anchorNode.>'s anchor within the anchorNode. If anchorNode is a text node, th
 >is is the number of characters within anchorNode preceding the an
 >chor. If anchorNode is an element, this is the number of child no
 >des of the anchorNode preceding the anchor.
t95        Returns the number of characters that the selection's foct95        Returns a number representing the offset of the selection
>us is offset within the focusNode.>'s anchor within the focusNode. If focusNode is a text node, this
 > is the number of characters within focusNode preceding the focus
 >. If focusNode is an element, this is the number of child nodes o
 >f the focusNode preceding the focus.

Back to History