Skip to content

Commit

Permalink
editorial: clarify naming for type=submit and reset buttons (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottaohara authored May 3, 2023
1 parent 31361e8 commit c9f494b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5969,12 +5969,10 @@ <h4>`input type="button"`, `input type="submit"` and `input type="reset"` Access
</li>
<li>Otherwise use the `value` attribute.</li>
<li>
For `input type=submit`: If steps 1 to 2 do not yield a usable text string, the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is a localized string of the word &quot;submit&quot;.
For `input type=submit` and `type=reset`: if the prior steps do not yield a usable text string, and the `value` attribute is unspecified use the
<a href="https://infra.spec.whatwg.org/#implementation-defined">implementation defined</a> string respective to the input type.
</li>
<li>
For `input type=reset`: If steps 1 to 2 do not yield a usable text string, the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is a localized string of the word &quot;reset&quot;.
</li>
<li>Otherwise use `title` attribute.</li>
<li>Otherwise, if the control still has no <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> use `title` attribute.</li>
<li>
If none of the above yield a usable text string there is no <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a>.
</li>
Expand Down

0 comments on commit c9f494b

Please sign in to comment.