mirror of https://github.com/sveltejs/svelte
feat: add a11y `autocomplete-valid` (#8520)
Part of #820 --------- Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>pull/8567/head
parent
83679e9700
commit
3f2f1e58df
@ -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" />
|
@ -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
|
||||
}
|
||||
}
|
||||
]
|
Loading…
Reference in new issue