Skip to content

Commit 1f0846b

Browse files
authored
Restore document.caretRangeFromPoint() (#1073)
Fixes #1072
1 parent 0f4a1bd commit 1f0846b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

baselines/dom.generated.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4439,6 +4439,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
44394439
/** @deprecated */
44404440
captureEvents(): void;
44414441
/** @deprecated */
4442+
caretRangeFromPoint(x: number, y: number): Range | null;
4443+
/** @deprecated */
44424444
clear(): void;
44434445
/**
44444446
* Closes an output stream and forces the sent data to display.

inputfiles/addedTypes.jsonc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,13 @@
619619
"createElementNS(namespaceURI: \"http://www.w3.org/2000/svg\", qualifiedName: string): SVGElement",
620620
"createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element"
621621
]
622+
},
623+
"caretRangeFromPoint": {
624+
"name": "caretRangeFromPoint",
625+
"deprecated": true,
626+
"overrideSignatures": [
627+
"caretRangeFromPoint(x: number, y: number): Range | null"
628+
]
622629
}
623630
}
624631
},

0 commit comments

Comments
 (0)