Skip to content

Commit 51db044

Browse files
authored
Merge pull request #2530 from w3c/account-for-aria-placeholder-in-accname
Clarification: include aria-placeholder in accName steps for HTML input elements
2 parents 66a2e86 + d1266b2 commit 51db044

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

html-aam/index.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16353,11 +16353,16 @@ <h4>
1635316353
<a href="" class="accname">Accessible Name and Description: Computation and API Mappings</a>.
1635416354
</li>
1635516355
<li>
16356-
Otherwise use the associated `label` element or elements <a data-cite="accname-1.2/#dfn-accessible-name">accessible name(s)</a> - if more than one `label` is associated; concatenate by
16357-
DOM order, delimited by spaces.
16356+
If the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is still empty: use the <a data-cite="accname-1.2/#mapping_additional_nd_te">text equivalent computation</a> of
16357+
the associated `label` element's subtree - if more than one `label` is associated; concatenate their subtrees by DOM order, delimited by spaces.
16358+
<p>
16359+
If the control is encapsulated by its `label` element, exclude the control's author specified or user-entered value from its computed
16360+
<a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a>.
16361+
</p>
1635816362
</li>
16359-
<li>If the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is still empty, then: use the control's `title` attribute.</li>
16360-
<li>Otherwise use the control's <a href="#att-placeholder">placeholder</a> value.</li>
16363+
<li>If the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is still empty: use the value of the control's `title` attribute.</li>
16364+
<li>If the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is still empty: use the value of the control's <a href="#att-placeholder">placeholder</a> attribute.</li>
16365+
<li>Otherwise, use the value of the element's <a data-cite="wai-aria-1.2/#aria-placeholder">`aria-placeholder`</a> attribute.</li>
1636116366
<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>
1636216367
</ol>
1636316368
</section>

0 commit comments

Comments
 (0)