content
content copied to clipboard
document.caretPositionFromPoint() API needs update
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/Document/caretPositionFromPoint
What specific section or headline is this issue about?
document.caretPositionFromPoint()
What information was incorrect, unhelpful, or incomplete?
The CSS WG recently resolved on adding an optional shadow root list to the arguments for this method, defining those shadow roots that may be pierced to identify the node and character. Chromium has implemented this changed behavior and is shipping soon.
What did you expect to see?
caretPositionFromPoint(x, y, options) where options is a dictionary of shadow roots.
Do you have any supporting links, references, or citations?
https://drafts.csswg.org/cssom-view/#extensions-to-the-document-interface
Do you have anything more you want to share?
No response
MDN metadata
Page report details
- Folder:
en-us/web/api/document/caretpositionfrompoint
- MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/Document/caretPositionFromPoint
- GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/api/document/caretpositionfrompoint/index.md
- Last commit: https://github.com/mdn/content/commit/90ba95cc125ac547dcefb72b72ff19b25882ea00
- Document last modified: 2023-05-17T15:27:16.000Z