Skip to content

Commit 0fcaeec

Browse files
authored
html aam updates for name from heading
This commit supersedes PR #2215
1 parent 47ef934 commit 0fcaeec

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

html-aam/index.html

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16816,7 +16816,43 @@ <h4>`iframe` Element Accessible Name Computation</h4>
1681616816
</p>
1681716817
</section>
1681816818
<section>
16819-
<h4>Section and Grouping Element Accessible Name Computation</h4>
16819+
<h4>`dialog` Element Accessible Name Computation</h4>
16820+
<ol>
16821+
<li>
16822+
If the `dialog` 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>
16823+
attribute the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is to be calculated using the algorithm defined in
16824+
<a class="accname">Accessible Name and Description: Computation and API Mappings</a>.
16825+
</li>
16826+
<li>
16827+
If the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is still empty, then: if the `dialog` element has a
16828+
<a href="https://dom.spec.whatwg.org/#concept-tree-descendant">descendant</a> element with a role of `heading`, then use the
16829+
<a data-cite="accname-1.2/#mapping_additional_nd_te">text equivalent computation</a> of the element as defined in
16830+
<a data-cite="accname-1.2/#comp_name_from_heading">accname: Name from Heading</a>.
16831+
</li>
16832+
<li>Otherwise, use the `title` attribute.</li>
16833+
<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>
16834+
</ol>
16835+
</section>
16836+
<section>
16837+
<h4>`article` Element Accessible Name Computation</h4>
16838+
<ol>
16839+
<li>
16840+
If the `article` 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>
16841+
attribute the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is to be calculated using the algorithm defined in
16842+
<a class="accname">Accessible Name and Description: Computation and API Mappings</a>.
16843+
</li>
16844+
<li>
16845+
If the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is still empty, then: if the `dialog` element has a
16846+
<a href="https://dom.spec.whatwg.org/#concept-tree-descendant">descendant</a> element with a role of `heading`, then use the
16847+
<a data-cite="accname-1.2/#mapping_additional_nd_te">text equivalent computation</a> of the element as defined in
16848+
<a data-cite="accname-1.2/#comp_name_from_heading">accname: Name from Heading</a>.
16849+
</li>
16850+
<li>Otherwise, use the `title` attribute.</li>
16851+
<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>
16852+
</ol>
16853+
</section>
16854+
<section>
16855+
<h4>Other Section and Grouping Element Accessible Name Computation</h4>
1682016856
<ol>
1682116857
<li>
1682216858
If the 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

0 commit comments

Comments
 (0)