-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit of aria label detection and reporting. Both aria-label…
…ledby and aria-label will be picked up as one of the required attributes on specified element types and checked for validity. This addresses #160 and paves the way for #159, #158, #157 and #156. Also references #162.
- Loading branch information
Showing
4 changed files
with
104 additions
and
37 deletions.
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
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,37 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>4.1.2 Aria Labels</title> | ||
<!-- @HTMLCS_Test@ | ||
Name: SC 4.1.2 Aria Labels | ||
Standard: WCAG2AAA | ||
Assert: Error *.H91.* on #unlabelledButton | ||
Assert: No Error *.H91 on #labelledButton | ||
Assert: Error *.H91.* on #emptyLabelledButton | ||
Assert: No Error * on #labelledByButton | ||
--> | ||
</head> | ||
<body> | ||
<form> | ||
|
||
<button id="unlabelledButton"> | ||
<span class="dd-icon glyph glyphicon-heart" aria-hidden="true"></span> | ||
</button> | ||
|
||
<button id="labelledButton" aria-label="my icon button"> | ||
<span class="dd-icon glyph glyphicon-heart" aria-hidden="true"></span> | ||
</button> | ||
|
||
<button id="emptyLabelledButton" aria-label=""> | ||
<span class="dd-icon glyph glyphicon-heart" aria-hidden="true"></span> | ||
</button> | ||
|
||
<div id="billing">Billing Address</div> | ||
<div> | ||
<div id="name">Name</div> | ||
<input id="labelledByButton" type="text" aria-labelledby="billing name"/> | ||
</div> | ||
|
||
</form> | ||
</body> | ||
</html> |