Exact DOM location and understanding DOM traversal is important for secure systems. If you are a Web Developer, spend some time learning it. 🔏
developer.mozilla.orgDocument: caretPositionFromPoint() method - Web APIs | MDNThe caretPositionFromPoint() method of the Document interface returns a CaretPosition object, containing the DOM node, along with the caret and caret's character offset within that node.
0 reposts0 likes