forked from sveltejs/svelte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Part of sveltejs#820
- Loading branch information
Showing
5 changed files
with
329 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
22 changes: 22 additions & 0 deletions
22
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,22 @@ | ||
<!-- 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" /> | ||
|
||
<!-- INVALID --> | ||
<input type="text" autocomplete /> | ||
<input type="hidden" autocomplete="off" /> | ||
<input type="hidden" autocomplete="on" /> | ||
<input type="text" autocomplete="" /> | ||
<input type="text" autocomplete="incorrect" /> | ||
<input type="email" autocomplete="url" /> | ||
<!-- `street-address` is only valid for Control Group "Multiline" --> | ||
<input type="text" autocomplete="section-blue shipping street-address" /> | ||
<input type="text" autocomplete="webauthn" /> |
98 changes: 98 additions & 0 deletions
98
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,98 @@ | ||
[ | ||
{ | ||
"code": "a11y-autocomplete-valid", | ||
"end": { | ||
"column": 31, | ||
"line": 14 | ||
}, | ||
"message": "A11y: The value 'true' is not supported by the attribute 'autocomplete' on element <input type=\"text\">", | ||
"start": { | ||
"column": 19, | ||
"line": 14 | ||
} | ||
}, | ||
{ | ||
"code": "a11y-autocomplete-valid", | ||
"end": { | ||
"column": 39, | ||
"line": 15 | ||
}, | ||
"message": "A11y: The value 'off' is not supported by the attribute 'autocomplete' on element <input type=\"hidden\">", | ||
"start": { | ||
"column": 21, | ||
"line": 15 | ||
} | ||
}, | ||
{ | ||
"code": "a11y-autocomplete-valid", | ||
"message": "A11y: The value 'on' is not supported by the attribute 'autocomplete' on element <input type=\"hidden\">", | ||
"end": { | ||
"column": 38, | ||
"line": 16 | ||
}, | ||
"start": { | ||
"column": 21, | ||
"line": 16 | ||
} | ||
}, | ||
{ | ||
"code": "a11y-autocomplete-valid", | ||
"message": "A11y: The value '' is not supported by the attribute 'autocomplete' on element <input type=\"text\">", | ||
"end": { | ||
"column": 34, | ||
"line": 17 | ||
}, | ||
"start": { | ||
"column": 19, | ||
"line": 17 | ||
} | ||
}, | ||
{ | ||
"code": "a11y-autocomplete-valid", | ||
"end": { | ||
"column": 43, | ||
"line": 18 | ||
}, | ||
"message": "A11y: The value 'incorrect' is not supported by the attribute 'autocomplete' on element <input type=\"text\">", | ||
"start": { | ||
"column": 19, | ||
"line": 18 | ||
} | ||
}, | ||
{ | ||
"code": "a11y-autocomplete-valid", | ||
"end": { | ||
"column": 38, | ||
"line": 19 | ||
}, | ||
"message": "A11y: The value 'url' is not supported by the attribute 'autocomplete' on element <input type=\"email\">", | ||
"start": { | ||
"column": 20, | ||
"line": 19 | ||
} | ||
}, | ||
{ | ||
"code": "a11y-autocomplete-valid", | ||
"end": { | ||
"column": 70, | ||
"line": 21 | ||
}, | ||
"message": "A11y: The value 'section-blue shipping street-address' is not supported by the attribute 'autocomplete' on element <input type=\"text\">", | ||
"start": { | ||
"column": 19, | ||
"line": 21 | ||
} | ||
}, | ||
{ | ||
"code": "a11y-autocomplete-valid", | ||
"end": { | ||
"column": 42, | ||
"line": 22 | ||
}, | ||
"message": "A11y: The value 'webauthn' is not supported by the attribute 'autocomplete' on element <input type=\"text\">", | ||
"start": { | ||
"column": 19, | ||
"line": 22 | ||
} | ||
} | ||
] |