Skip to content

Commit

Permalink
Fix typo in the Selection.focusOffset property description (#37758)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janscode authored Jan 23, 2025
1 parent c783eb1 commit 8d5fd65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/api/selection/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ A user may make a selection from left to right (in document order) or right to l
- {{DOMxRef("Selection.focusNode")}} {{ReadOnlyInline}}
- : Returns the {{DOMxRef("Node")}} in which the selection ends. Can return `null` if selection never existed in the document (for example, in an `iframe` that was never clicked on).
- {{DOMxRef("Selection.focusOffset")}} {{ReadOnlyInline}}
- : Returns a number representing the offset of the selection'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 of the `focusNode` preceding the focus.
- : Returns a number representing the offset of the selection's focus 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 of the `focusNode` preceding the focus.
- {{DOMxRef("Selection.isCollapsed")}} {{ReadOnlyInline}}
- : Returns a Boolean indicating whether the selection's start and end points are at the same position.
- {{DOMxRef("Selection.rangeCount")}} {{ReadOnlyInline}}
Expand Down

0 comments on commit 8d5fd65

Please sign in to comment.