Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_3/1_3_5.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ _global.HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_3_1_3_5 = {
element.getAttribute("type") === "search") ||
(element.tagName === "INPUT" &&
element.getAttribute("type") === "email") ||
(element.tagName === "INPUT" &&
element.getAttribute("type") === "url") ||
element.tagName === "TEXTAREA" ||
element.tagName === "SELECT";

Expand Down
22 changes: 22 additions & 0 deletions Tests/WCAG2/1_3_5_Autocomplete_Url.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<title>1.3.5 Autocomplete URL</title>
<!-- @HTMLCS_Test@
Name: SC 1.3.5 Autocomplete URL
Standard: WCAG2AAA
Assert: No Error *.H98 on #urlTypeUrl
Assert: No Error *.H98 on #photoTypeUrl
Assert: No Error *.H98 on #urlTypeText
Assert: Error *.H98 on #urlTypeNumber
-->
</head>
<body>

<input id="urlTypeUrl" type="url" autocomplete="url" />
<input id="photoTypeUrl" type="url" autocomplete="photo" />
<input id="urlTypeText" type="text" autocomplete="url" />
<input id="urlTypeNumber" type="number" autocomplete="url" />

</body>
</html>