Skip to content

Commit c6b03d0

Browse files
spectranautpkrajnurthen
authored
Editorial: Validator tests for removing "aria-expanded" from listbox support attributes (#2167)
Co-authored-by: Peter Krautzberger <[email protected]> Co-authored-by: pkra <[email protected]> Co-authored-by: James Nurthen <[email protected]>
1 parent d3caf49 commit c6b03d0

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

validator-tests/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ corresponding changes in validators.
3030
* [Listbox Group Children Must Be Option](listbox-group-children-must-be-option.html)
3131
* @axe-core/cli: [Results](listbox-group-children-must-be-option-axe.json), [bug](https://github.com/dequelabs/axe-core-npm/issues/313)
3232
* validator.nu: [Results](listbox-group-children-must-be-option-vnu.json)
33+
* [aria-expanded no longer supported on listbox](listbox-aria-expanded-not-supported.html)
34+
* @axe-core/cli: [Results](listbox-aria-expanded-not-supported-axe.json), [bug](https://github.com/dequelabs/axe-core/issues/4433)
35+
* validator.nu: [Results](listbox-aria-expanded-not-supported-vnu.json), [bug](https://github.com/validator/validator/issues/1716)
3336
* [Menuitemcheckbox Owned By Menu](menuitemcheckbox-owned-by-menu.html)
3437
* @axe-core/cli: [Results](menuitemcheckbox-owned-by-menu-axe.json)
3538
* validator.nu: [Results](menuitemcheckbox-owned-by-menu-vnu.json)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{
2+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en-US">
3+
<head><title>aria-expanded is no longer a supported property on role listbox.</title></head>
4+
<body>
5+
<!--
6+
URL: https://www.w3.org/TR/wai-aria-1.2/#listbox
7+
RULE: "aria-expanded is no longer a supported property on role listbox"
8+
NOTE: Change introduced by https://github.com/w3c/aria/pull/1862
9+
-->
10+
11+
<div id="fail1" role="listbox" aria-label="foo" aria-expanded="true">
12+
</div>
13+
14+
<div id="fail2" role="listbox" aria-label="foo" aria-expanded="false">
15+
</div>
16+
17+
<div id="fail3" role="listbox" aria-label="foo" aria-expanded>
18+
</div>

0 commit comments

Comments
 (0)