Skip to content

Commit

Permalink
update PR with element name change and attr expectations
Browse files Browse the repository at this point in the history
- update pr from selectedoption to selectedconent
- map to the generic role (in the event someone misuses the element and declares it outside of its expected location, as a child of the button part within a select.
- note that in its intended usage, the button part will be inert, and thus any global html or aria attributes used on the element would not be exposed to the a11y api
  • Loading branch information
scottaohara authored Dec 11, 2024
1 parent d1c9f9d commit cf0e63a
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions html-aam/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6343,20 +6343,19 @@ <h4 id="el-select-combobox">`select`<span class="el-context"> (with NO `multiple
</tr>
</tbody>
</table>
<h4 id="el-selectedoption">`selectedoption`</h4>
<table aria-labelledby="el-selectedoption">
<h4 id="el-selectedcontent">`selectedcontent`</h4>
<table aria-labelledby="el-selectedcontent">
<tbody>
<tr>
<th>HTML Specification</th>
<td>
<a data-cite="HTML">`selectedoption`</a>
<a data-cite="HTML">`selectedcontent`</a>
</td>
</tr>
<tr>
<th>[[wai-aria-1.2]]</th>
<td>
???
<!-- todo: not mapped, html-selectedoption, generic, or none? -->
<div class="general"><a class="core-mapping" href="#role-map-generic">`generic`</a> role</div>
</td>
</tr>
<tr>
Expand All @@ -6368,31 +6367,37 @@ <h4 id="el-selectedoption">`selectedoption`</h4>
<a href="https://msdn.microsoft.com/en-us/library/dd373608%28v=VS.85%29.aspx">MSAA</a> + <a href="http://accessibility.linuxfoundation.org/a11yspecs/ia2/docs/html/">IAccessible2</a>
</th>
<td>
<div class="general">???</div>
<div class="general"><div class="general">Use WAI-ARIA mapping</div></div>
</td>
</tr>
<tr>
<th><a href="https://msdn.microsoft.com/en-us/library/ms726297%28v=VS.85%29.aspx">UIA</a></th>
<td>
<div class="general">???</div>
<div class="general"><div class="general">Use WAI-ARIA mapping</div></div>
</td>
</tr>
<tr>
<th><a href="https://gnome.pages.gitlab.gnome.org/atk/">ATK</a></th>
<td>
<div class="general">???</div>
<div class="general"><div class="general">Use WAI-ARIA mapping</div></div>
</td>
</tr>
<tr>
<th><a href="https://developer.apple.com/reference/appkit/nsaccessibility">AX</a></th>
<td>
<div class="general">???</div>
<div class="general"><div class="general">Use WAI-ARIA mapping</div></div>
</td>
</tr>
<!-- <th><a href="#accessible-name-and-description-computation">Naming Algorithm</a></th> -->
<tr>
<th>Comments</th>
<td></td>
<td>
<p>The `selectedcontent` element is meant to be declared as a child of the `button` part of a custom styled `select` element.
As the `button` part is meant to be treated as inert, the `selectedcontent` element will commonly be treated as inert, as well.</p>
<p class=note>
As the parent `button` element to the `selectedcontent` element is meant to be treated as inert, any use of global HTML or ARIA attributes, or attributes specific to the `selectedcontent` element would not be exposed to the user agent's accessibility API.
</p>
</td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit cf0e63a

Please sign in to comment.