Skip to content

Commit 8958e5a

Browse files
aria-defined: remove unnecessary spinbutton role (act-rules#2044)
Co-authored-by: Carlos Duarte <caduarte@campus.ul.pt>
1 parent 55dc0d4 commit 8958e5a

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

_rules/aria-attr-defined-5f99a7.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,11 @@ This `div` element with a role of `textbox` has multiple `aria-` attributes whic
8383

8484
#### Passed Example 4
8585

86-
This `input` element with a role of `spinbutton` has multiple `aria-` attributes specified which are all defined in [WAI-ARIA Specifications][].
86+
This `input` element with a type of `number` has multiple `aria-` attributes specified which are all defined in [WAI-ARIA Specifications][].
8787

8888
```html
8989
<label for="spinbutton">Enter a number between 0 and 100:</label>
90-
<input
91-
id="spinbutton"
92-
role="spinbutton"
93-
aria-valuemax="100"
94-
aria-valuemin="0"
95-
aria-valuenow="25"
96-
type="number"
97-
value="25"
98-
/>
90+
<input id="spinbutton" aria-valuemax="100" aria-valuemin="0" aria-valuenow="25" type="number" value="25" />
9991
```
10092

10193
### Failed

0 commit comments

Comments
 (0)