Skip to content

Missing elementsFromPoint method in Document. #22943

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cmerighi opened this issue Mar 28, 2018 · 2 comments
Closed

Missing elementsFromPoint method in Document. #22943

cmerighi opened this issue Mar 28, 2018 · 2 comments
Assignees
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Fixed A PR has been merged for this issue Help Wanted You can do this

Comments

@cmerighi
Copy link

TypeScript Version: 2.8.1

Compilation error on lines like:

const hover = document.elementsFromPoint/* <- imagine a wavy red underline here */
(args.currentPosition.x, args.currentPosition.y)
.find(e => dragger.dropTargets.indexOf(e) >= 0);

Property elementsFromPoint does not exist on type Document. Did you mean elementFromPoint?

I actually didn't...
It seems to me that elementsFromPoint should still be there (it was on TypeScript 2.7.2).

I checked MDN about DocumentOrShadowRoot mixin and Methods included (in Document) from DocumentOrShadowRoot for reference.

@mhegazy mhegazy added Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this labels Mar 28, 2018
@mhegazy
Copy link
Contributor

mhegazy commented Mar 28, 2018

PRs welcomed. You can find more information about contributing lib.d.ts fixes at https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixes.

@mhegazy mhegazy self-assigned this Mar 28, 2018
@mhegazy mhegazy added this to the TypeScript 2.8.2 milestone Mar 28, 2018
mhegazy added a commit to microsoft/TypeScript-DOM-lib-generator that referenced this issue Mar 28, 2018
@mhegazy mhegazy added Fixed in TSJS repo Fix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yet and removed Fixed in TSJS repo Fix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yet labels Mar 28, 2018
@mhegazy mhegazy added Fixed A PR has been merged for this issue and removed Fixed in TSJS repo Fix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yet labels Mar 28, 2018
@cmerighi
Copy link
Author

Thank you. I'm sorry I couldn't help.

@microsoft microsoft locked and limited conversation to collaborators Jul 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Fixed A PR has been merged for this issue Help Wanted You can do this
Projects
None yet
Development

No branches or pull requests

2 participants