-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makes aria-braillelabel prohibited whereever aria-label is prohibited. (
- Loading branch information
Showing
2 changed files
with
75 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<!DOCTYPE html> | ||
<html lang="en-US"> | ||
<head><title>BrailleLabel Prohibited</title></head> | ||
<body> | ||
|
||
<!-- | ||
URL: https://www.w3.org/TR/wai-aria-1.3/#aria-braillelabel | ||
RULE: "Authors MUST NOT specify aria-braillelabel on an element which has an explicit or implicit WAI-ARIA role where aria-braillelabel is prohibited." | ||
--> | ||
|
||
<!-- aria-label --> | ||
<div id="aria-label-1" role="code" aria-braillelabel="foo">bar</div> | ||
<code id="aria-label-2" aria-label="foo">bar</code> | ||
|
||
<div id="aria-label-3" role="deletion" aria-braillelabel="foo">bar</div> | ||
<del id="aria-label-4" aria-label="foo">bar</del> | ||
|
||
<div id="aria-label-5" role="emphasis" aria-braillelabel="foo">bar</div> | ||
<em id="aria-label-6" aria-label="foo">bar</em> | ||
|
||
<div id="aria-label-7" role="generic" aria-braillelabel="foo">bar</div> | ||
<div id="aria-label-8" aria-label="foo">bar</div> | ||
|
||
<div id="aria-label-9" role="insertion" aria-braillelabel="foo">bar</div> | ||
<ins id="aria-label-10" aria-label="foo">bar</ins> | ||
|
||
<div id="aria-label-11" role="paragraph" aria-braillelabel="foo">bar</div> | ||
<p id="aria-label-12" aria-label="foo">bar</p> | ||
|
||
<div id="aria-label-13" role="presentation" aria-braillelabel="foo">bar</div> | ||
<div id="aria-label-14" role="none" aria-label="foo">bar</div> | ||
|
||
<div id="aria-label-15" role="strong" aria-braillelabel="foo">bar</div> | ||
<strong id="aria-label-16" aria-label="foo">bar</strong> | ||
|
||
<div id="aria-label-17" role="subscript" aria-braillelabel="foo">bar</div> | ||
<sub id="aria-label-18" aria-label="foo">bar</sub> | ||
|
||
<div id="aria-label-19" role="superscript" aria-braillelabel="foo">bar</div> | ||
<sup id="aria-label-20" aria-label="foo">bar</sup> | ||
|
||
<div role="table"> | ||
<div id="aria-label-21" role="caption" aria-braillelabel="foo">bar</div> | ||
<div role="row"> | ||
<div role="cell">baz</div> | ||
</div> | ||
</div> | ||
<table> | ||
<caption id="aria-label-22" aria-braillelabel="foo">bar</caption> | ||
<tr> | ||
<td>baz</td> | ||
</tr> | ||
</table> | ||
|
||
</body> | ||
</html> | ||
|