-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add a11y
autocomplete-valid
(#8520)
Part of #820 --------- Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
- Loading branch information
1 parent
83679e9
commit 3f2f1e5
Showing
6 changed files
with
183 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
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
21 changes: 21 additions & 0 deletions
21
test/validator/samples/a11y-autocomplete-valid/input.svelte
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,21 @@ | ||
<!-- VALID --> | ||
<input type="text" /> | ||
<input type="text" autocomplete="name" /> | ||
<input type="text" autocomplete="off" /> | ||
<input type="text" autocomplete="on" /> | ||
<input type="text" autocomplete="billing family-name" /> | ||
<input type="hidden" autocomplete="section-blue shipping street-address" /> | ||
<input type="text" autocomplete="section-somewhere shipping work email" /> | ||
<input type="text" autocomplete="section-somewhere shipping work email webauthn" /> | ||
<input type="text" autocomplete="SECTION-SOMEWHERE SHIPPING WORK EMAIL WEBAUTHN" /> | ||
<input type="TEXT" autocomplete="ON" /> | ||
<input type="email" autocomplete="url" /> | ||
<input type="text" autocomplete="section-blue shipping street-address" /> | ||
<input type="hidden" autocomplete="off" /> | ||
<input type="hidden" autocomplete="on" /> | ||
<input type="text" autocomplete="" /> | ||
|
||
<!-- INVALID --> | ||
<input type="text" autocomplete /> | ||
<input type="text" autocomplete="incorrect" /> | ||
<input type="text" autocomplete="webauthn" /> |
38 changes: 38 additions & 0 deletions
38
test/validator/samples/a11y-autocomplete-valid/warnings.json
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,38 @@ | ||
[ | ||
{ | ||
"code": "a11y-autocomplete-valid", | ||
"end": { | ||
"column": 31, | ||
"line": 19 | ||
}, | ||
"message": "A11y: The value 'true' is not supported by the attribute 'autocomplete' on element <input type=\"text\">", | ||
"start": { | ||
"column": 19, | ||
"line": 19 | ||
} | ||
}, | ||
{ | ||
"code": "a11y-autocomplete-valid", | ||
"end": { | ||
"column": 43, | ||
"line": 20 | ||
}, | ||
"message": "A11y: The value 'incorrect' is not supported by the attribute 'autocomplete' on element <input type=\"text\">", | ||
"start": { | ||
"column": 19, | ||
"line": 20 | ||
} | ||
}, | ||
{ | ||
"code": "a11y-autocomplete-valid", | ||
"end": { | ||
"column": 42, | ||
"line": 21 | ||
}, | ||
"message": "A11y: The value 'webauthn' is not supported by the attribute 'autocomplete' on element <input type=\"text\">", | ||
"start": { | ||
"column": 19, | ||
"line": 21 | ||
} | ||
} | ||
] |