Skip to content
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

Implement ARIAMixin on Element #32079

Open
nolanlawson opened this issue Apr 14, 2024 · 0 comments
Open

Implement ARIAMixin on Element #32079

nolanlawson opened this issue Apr 14, 2024 · 0 comments
Labels
B-feature-tracking This issue tracks a particular high-level feature C-untriaged New issues that haven't been triaged yet

Comments

@nolanlawson
Copy link
Contributor

I noticed that ElementInternals support was added recently (#31980). I think it would be nice to implement basic ARIAMixin reflection for Elements as well:

element.setAttribute('aria-label', 'foo')
element.ariaLabel // 'foo'

The trickiest part is that this is a mixin, so ideally it would be implemented on both Element as well as ElementInternals. (See relevant spec and WPT tests.) Although maybe for a first pass, it can just be defined directly on Element?

I was looking into this a bit, and it seems that html5ever might also need to be updated to include the necessary local names (e.g. ariaLabel, which is missing from local_names.txt).

@nolanlawson nolanlawson added B-feature-tracking This issue tracks a particular high-level feature C-untriaged New issues that haven't been triaged yet labels Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-feature-tracking This issue tracks a particular high-level feature C-untriaged New issues that haven't been triaged yet
Projects
None yet
Development

No branches or pull requests

1 participant