Skip to content

[cssom-view-1] Define caretRangeFromPoint() #12362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

keithamus
Copy link
Member

This attempts to define caretRangeFromPoint() as discussed in #6459.

This is largely copy/pasted from caretPositionFromPoint(), but simply changing the return type to a Range.

Closes #6459.

@keithamus keithamus requested review from smfr and emilio June 18, 2025 09:42
<dd>The node corresponding to the text entry widget.

<dt><a>range start offset</a>
<dd>The amount of 16-bit units to the left of where the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does "16-bit units" come from?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the same spec prose as defined in caretPositionFromPoint() - which AFAICT comes from the definition in 532723f. I don't have further context than that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[cssom-view] Specify document.caretRangeFromPoint?
2 participants