- From: Kari Söderholm <notifications@github.com>
- Date: Mon, 13 Dec 2021 01:20:12 -0800
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 13 December 2021 09:20:25 UTC
So it kind of looks like `elementFromPoint` and `elementsFromPoint` were being dropped from the spec for `DocumentOrShadowRoot` since they were defined in Shadow DOM spec for that but there's no live spec reference for it anymore but I'm pretty sure this is not intentional. This confusion also seems to have caused TypeScript to drop those methods from their DOM type definitions in TS 4.4 but looks like were added back in TS 4.5. TypeScript 4.4 libdom changes (https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/1029) > `DocumentOrShadowRoot` > Removed: `caretPositionFromPoint`, `caretRangeFromPoint`, `elementFromPoint`, `elementsFromPoint`, `getSelection` TypeScript 4.5 libdom changes (https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/1143) > `DocumentOrShadowRoot` > Added: `elementFromPoint`, `elementsFromPoint` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/661#issuecomment-992262771
Received on Monday, 13 December 2021 09:20:25 UTC