Skip to content

Commit f849e1e

Browse files
jnurthencarmacleod
authored andcommitted
Make Form Accessible Name Required True (#1071)
1 parent a9934e7 commit f849e1e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -3190,7 +3190,9 @@ <h2>Definition of Roles</h2>
31903190
<rdef>form</rdef>
31913191
<div class="role-description">
31923192
<p>A <rref>landmark</rref> region that contains a collection of items and objects that, as a whole, combine to create a form. See related <rref>search</rref>.</p>
3193-
<p>A form may be a mix of host language form controls, scripted controls, and hyperlinks. Authors are reminded to use native host language semantics to create form controls, whenever possible. For search facilities, authors SHOULD use the <rref>search</rref> role and not the generic <code>form</code> role. Authors SHOULD provide a visible label for the form referenced with <pref>aria-labelledby</pref>. If an author uses a script to submit a form based on a user action that would otherwise not trigger an <code>onsubmit</code> event (for example, a form submission triggered by the user changing a form element's value), the author SHOULD provide the user with advance notification of the behavior.</p>
3193+
<p>A form may contain a mix of host language form controls, scripted controls, and hyperlinks. Authors are reminded to use native host language semantics to create form controls whenever possible. If the purpose of a form is to submit search criteria, authors SHOULD use the <rref>search</rref> role instead of the generic <code>form</code> role.</p>
3194+
<p>Authors MUST give each element with role <code>form</code> a brief label that describes the purpose of the form. Authors SHOULD reference a visible label with <pref>aria-labelledby</pref> if a visible label is present. Authors SHOULD include the label inside of a heading whenever possible. The heading MAY be an instance of the standard host language heading element or an instance of an element with role <rref>heading</rref>.</p>
3195+
<p>If an author uses a script to submit a form based on a user action that would otherwise not trigger an <code>onsubmit</code> event (for example, a form submission triggered by the user changing a form element's value), the author SHOULD provide the user with advance notification of the behavior.</p>
31943196
<p>User agents SHOULD treat elements with the role of <code>form</code> as navigational <a>landmarks</a>.</p>
31953197
</div>
31963198
<table class="role-features">
@@ -3248,7 +3250,7 @@ <h2>Definition of Roles</h2>
32483250
</tr>
32493251
<tr>
32503252
<th class="role-namerequired-head" scope="row">Accessible Name Required:</th>
3251-
<td class="role-namerequired"> </td>
3253+
<td class="role-namerequired">true</td>
32523254
</tr>
32533255
<tr>
32543256
<th class="role-namerequired-inherited-head" scope="row">Inherits Name Required:</th>

0 commit comments

Comments
 (0)