question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Rules] Remove aria-* allowances from datalist element

See original GitHub issue

ARIA 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.

test case

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:17 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
eirckrcommented, Dec 7, 2021

Thanks for the ticket @scottaohara, we will review and get back to you.

0reactions
eirckrcommented, Sep 9, 2022

Validated

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found