Skip to content

clarify output element naming #402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Mar 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 18 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2404,13 +2404,23 @@ <h3>HTML Element Role Mappings</h3>
<tr tabindex="-1" id="el-output">
<th><a data-cite="HTML">`output`</a></th>
<td class="aria"><a class="core-mapping" href="#role-map-status">`status`</a> role</td>
<td class="ia2"><div class="general">Use WAI-ARIA mapping</div></td>
<td class="uia">
<td class="ia2">
<div class="general">Use WAI-ARIA mapping</div>
<div class="ctrltype"> <span class="type">Localized Control Type:</span> `"output"`</div>
<div class="relations">
<span class="type">Relations:</span> `IA2_RELATION_LABELLED_BY` with associated `label` element
</div>
</td>
<td class="uia"><div class="general">Use WAI-ARIA mapping</div></td>
<td class="atk">
<div class="general">Use WAI-ARIA mapping</div>
<div class="relations">
<span class="type">Relations:</span> `ATK_RELATION_LABELLED_BY` with associated `label` element
</div>
</td>
<td class="ax">
<div class="general">Use WAI-ARIA mapping</div>
<td class="ax">`AXDescription`: value from associated `label` element subtree.</td>
</td>
<td class="atk"><div class="general">Use WAI-ARIA mapping</div></td>
<td class="ax"><div class="general">Use WAI-ARIA mapping</div></td>
<!-- <td class="naming"></td> -->
<td class="comments"></td>
</tr>
Expand Down Expand Up @@ -5832,7 +5842,7 @@ <h4>`input type="text"`, `input type="password"`, `input type="number"`, `input
If the control has an <a data-cite="wai-aria-1.2/#aria-label">`aria-label`</a> or an <a data-cite="wai-aria-1.2/#aria-labelledby">`aria-labelledby`</a> attribute the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is to be calculated using the algorithm defined in <a href="" class="accname">Accessible Name and Description: Computation and API Mappings</a>.
</li>
<li>
Otherwise use the associated `label` element(s) <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a>(s) - if more than one label is associated; concatenate by DOM order, delimited by spaces.
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 DOM order, delimited by spaces.
</li>
<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>
<li>Otherwise use the control's <a href="#att-placeholder">placeholder</a> value.</li>
Expand Down Expand Up @@ -5921,7 +5931,7 @@ <h4>`output` Element Accessible Name Computation</h4>
<li>
If the `output` element has an <a data-cite="wai-aria-1.2/#aria-label">`aria-label`</a> or an <a data-cite="wai-aria-1.2/#aria-labelledby">`aria-labelledby`</a> attribute the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is to be calculated using the algorithm defined in <a href="" class="accname">Accessible Name and Description: Computation and API Mappings</a>.
</li>
<li>Otherwise use the `output` element subtree.</li>
<li>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 DOM order, delimited by spaces.</li>
<li>Otherwise 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>.
Expand Down Expand Up @@ -6130,6 +6140,7 @@ <h3>Change Log</h3>
<section>
<h4>Substantive changes since moving to the <a href="https://www.w3.org/WAI/ARIA/">Accessible Rich Internet Applications Working Group</a> (03-Nov-2019)</h4>
<ul>
<li>08-Mar-2023: Clarify naming algorithm for `output` element. See <a href="https://github.com/w3c/html-aam/pull/402">GitHub PR 402</a>.</li>
<li>12-Dec-2022: Revise mapping for `s` element to be `role=deletion`. See <a href="https://github.com/w3c/html-aam/pull/442">GitHub PR 442</a>.</li>
<li>28-Nov-2022: Simplify accessible description computation section. See <a href="https://github.com/w3c/html-aam/pull/444">GitHub PR 444</a>.</li>
<li>19-Jul-2022: Update `address` element to be mapped to `role=group`. See <a href="https://github.com/w3c/html-aam/pull/420">GitHub PR 420</a>.</li>
Expand Down