Skip to content

Commit dc4db11

Browse files
authored
Editorial: input type=image should match type=reset|submit (#508)
Editorial: input type=image should match type=reset|submit The allowed roles were made consistent in an earlier PR, but the other accompanying 'not recommended' guidance was missed. closes #504 expand on the 'if possible' paragraph to call out that it'd be better for authors to use the button element instead of these legacy (though still valid) input button types.
1 parent ab4990f commit dc4db11

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

index.html

+9-3
Original file line numberDiff line numberDiff line change
@@ -1826,7 +1826,7 @@ <h2 id="docconformance">
18261826
<td>
18271827
<div class="proposed addition">
18281828
<p>
1829-
Roles:
1829+
The following roles are allowed, but are NOT RECOMMENDED:
18301830
<a href="#index-aria-button">`button`</a>,
18311831
<a href="#index-aria-checkbox">`checkbox`</a>,
18321832
<a href="#index-aria-gridcell">`gridcell`</a>,
@@ -1846,6 +1846,10 @@ <h2 id="docconformance">
18461846
<a data-cite="wai-aria-1.2#global_states">Global `aria-*` attributes</a>
18471847
and any `aria-*` attributes applicable to the allowed roles.
18481848
</p>
1849+
<p>
1850+
If possible, authors SHOULD consider using a different HTML element which allows the specified role,
1851+
such as the `button` element.
1852+
</p>
18491853
</div>
18501854
</td>
18511855
</tr>
@@ -1981,7 +1985,8 @@ <h2 id="docconformance">
19811985
and any `aria-*` attributes applicable to the allowed roles.
19821986
</p>
19831987
<p>
1984-
If possible, authors SHOULD consider using a different HTML element which allows the specified role.
1988+
If possible, authors SHOULD consider using a different HTML element which allows the specified role,
1989+
such as the `button` element.
19851990
</p>
19861991
</div>
19871992
</td>
@@ -2036,7 +2041,8 @@ <h2 id="docconformance">
20362041
and any `aria-*` attributes applicable to the allowed roles.
20372042
</p>
20382043
<p>
2039-
If possible, authors SHOULD consider using a different HTML element which allows the specified role.
2044+
If possible, authors SHOULD consider using a different HTML element which allows the specified role,
2045+
such as the `button` element.
20402046
</p>
20412047
</div>
20422048
</td>

0 commit comments

Comments
 (0)