[Rules] Remove aria-* allowances from datalist element
See original GitHub issueARIA in HTML is updating the datalist
element to no longer allow any aria-*
attributes.
In reality specifying global aria-*
attributes, or attributes which can be used with the implicit listbox
role have no actual impact on the element or its child options. Due to this, while there appears to be no negative impact for users to specify ARIA attributes on the element, allowing authors to do so also serves no benefit, and this should be called out to them.
Issue Analytics
- State:
- Created 2 years ago
- Comments:17 (15 by maintainers)
Top Results From Across the Web
ARIA in HTML - W3C
This specification defines the authoring rules (author conformance requirements) for the use of Accessible Rich Internet Applications (WAI-ARIA) ...
Read more ><datalist>: The HTML Data List element - MDN Web Docs
The HTML element contains a set of elements that represent the permissible or recommended options available to choose from within other ...
Read more >html-aria/index.html at gh-pages · w3c/html-aria - GitHub
Disallow roles and `aria-*` attributes on the <a href="#el-datalist">`datalist`</a> element.
Read more >HTML syntax guidelines
Other (generally higher level) guidelines for writing custom elements: ... default ARIA roles instead of directly setting ARIA attributes on the element.
Read more >There can be only one: Options for building “choose one” fields
Add the required attribute (and aria-required ) to the <input> and you're good to go. As I mentioned, <datalist> became a part of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for the ticket @scottaohara, we will review and get back to you.
Validated