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.

False error aria-required-children with combobox

See original GitHub issue

I’m implementing an autocomplete widget with code similar to the example for a combobox here: https://www.w3.org/TR/wai-aria/roles#combobox

<input type="text" aria-label="Tag" role="combobox" aria-expanded="true"
  aria-autocomplete="list" aria-owns="owned_listbox" aria-activedescendant="selected_option">
<ul role="listbox" id="owned_listbox">
  <li role="option">Zebra</li>
  <li role="option" id="selected_option">Zoom</li>
</ul>

The input has role combobox and the ul has role listbox.

Error: Certain ARIA roles must contain particular children. Required ARIA children role not present: listbox textbox

And this is pointing to the input which can’t have any children.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
WilcoFierscommented, Aug 30, 2017

@irbian We’re currently planning the release of axe 2.4. That should hit within the next few weeks.

0reactions
irbiancommented, Aug 30, 2017

When will be this deployed into the chrome extension?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does a combobox require a child element with the role of ...
Short Answer to "Does a combobox require a child element with the role of textbox?" Under current (aria-1.1) standards: yes.
Read more >
aria-required-children - Accessibility Insights
An ARIA role attribute can be added to an element to instruct assistive technologies to treat the element as something other than its...
Read more >
useComboBox – React Aria
useComboBox helps achieve accessible combo box and autocomplete components that can be styled as needed. Support for filtering a list of options by...
Read more >
Using ARIA: Roles, states, and properties - MDN Web Docs
Composite roles. The techniques below describe each composite role as well as their required and optional child roles. combobox · grid ( ...
Read more >
Accessible Rich Internet Applications (WAI-ARIA) 1.1 - W3C
Accessible Name Required: True. Children Presentational: True. Implicit Value for Role: Default for aria-checked is false .
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