Skip to content

Commit 46c200b

Browse files
authored
Add more failing examples (act-rules#2032)
1 parent 8378009 commit 46c200b

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

_rules/autocomplete-valid-value-73f2c2.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,46 @@ The `autocomplete` attribute value is on an `input` element that does not have a
206206
<label>Username<input role="banner" tabindex="0" autocomplete="banner"/></label>
207207
```
208208

209+
#### Failed Example 6
210+
211+
This `autocomplete` attribute does not contain any required token.
212+
213+
```html
214+
<label>Address<input autocomplete="shipping"/></label>
215+
```
216+
217+
#### Failed Example 7
218+
219+
This `autocomplete` attribute contains two of the required tokens, but only one is allowed.
220+
221+
```html
222+
<label>Address<input autocomplete="address-line1 address-line2"/></label>
223+
```
224+
225+
#### Failed Example 8
226+
227+
This `autocomplete` attribute contains a `work` modifier but no required token afterwards.
228+
229+
```html
230+
<label>Email<input autocomplete="work"/></label>
231+
```
232+
233+
#### Failed Example 9
234+
235+
This `autocomplete` attribute contains an extra token after the allowed ones.
236+
237+
```html
238+
<label>Password<input type="password" autocomplete="current-password webauthn invalid"/></label>
239+
```
240+
241+
#### Failed Example 10
242+
243+
This `autocomplete` attribute contains an extra token after the allowed ones.
244+
245+
```html
246+
<label>Email<input autocomplete="email invalid"/></label>
247+
```
248+
209249
### Inapplicable
210250

211251
#### Inapplicable Example 1

0 commit comments

Comments
 (0)