document.caretPositionFromPoint()
The document.caretPositionFromPoint() method finds an insertion point, represented by a DOM node and an offset within that node, for given coordinates in the viewport.
Status
Limited availability
MDN documentation
Specifications
Browser support
- Chrome 128 Released on 2024-08-20
- Chrome Android 128 Released on 2024-08-20
- Edge 128 Released on 2024-08-22
- Firefox 20 Released on 2013-04-02
- Firefox for Android 20 Released on 2013-04-02
- Safari ❌ Vendor position : support
- Safari on iOS ❌ Vendor position : support
Baseline availability blocked since August 2024 by Safari (16 months)
Developer signals
- State of HTML 2024: reading_list/reading_list question
- State of HTML 2024: forms/forms_features question
- State of HTML 2024: features/all_features question
Usage (according to Chrome Platform Status)
~4.947% of page loads. More data at chromestatus.com.Web Platform Tests (WPT)
View the latest WPT test results for this featureDeveloper signals
Votes: 0
If you want this feature to be available in all browsers, vote for it by adding a thumbs up reaction (👍) to this GitHub issue, and leave a comment with more information.
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist