Skip to content

Element.prototype.ariaControlsElements is not typed in TypeScript #1971

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
danieltroger opened this issue Apr 9, 2025 · 3 comments
Closed

Comments

@danieltroger
Copy link

danieltroger commented Apr 9, 2025

It's supported in all major browsers (Firefox, Safari and Chromium) but not in TypeScript.

You can go to https://truewerk.com/collections/farming-ranching and run document.querySelector("[aria-controls]").ariaControlsElements to see it in action.

I found something about it here https://dontcallmedom.github.io/webidlpedia/names/ARIAMixin.html which may help with creating the types.

@danieltroger danieltroger changed the title Element.prototype.ariaControlsElements doesn't exist at all in TypeScript Element.prototype.ariaControlsElements is not typed in TypeScript Apr 9, 2025
@saschanaz
Copy link
Contributor

It's added in #1930, please try @types/web if you need it today. Thanks!

@saschanaz
Copy link
Contributor

@github-actions close

Copy link
Contributor

Closing because @saschanaz is one of the code-owners of this repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants