Skip to content

Commit 55d748e

Browse files
authored
Addition: Name from heading
closes #457 Related to the following: - w3c/aria#1860 - w3c/accname#229 (this needs to be merged so the new links to 'accName: name from heading' will work
1 parent e58672f commit 55d748e

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

index.html

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16435,6 +16435,26 @@ <h4>Other Form Elements Accessible Name Computation</h4>
1643516435
</li>
1643616436
</ol>
1643716437
</section>
16438+
<section>
16439+
<h4>`dialog` Element Accessible Name Computation</h4>
16440+
<ol>
16441+
<li>
16442+
If the `dialog` element has an <a data-cite="wai-aria-1.2/#aria-label">`aria-label`</a> or an
16443+
<a data-cite="wai-aria-1.2/#aria-labelledby">`aria-labelledby`</a> attribute the
16444+
<a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is to be calculated using the algorithm defined in
16445+
<a class="accname">Accessible Name and Description: Computation and API Mappings</a>.
16446+
</li>
16447+
<li>
16448+
If the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is still empty, then: if the `dialog` element has a
16449+
<a href="https://dom.spec.whatwg.org/#concept-tree-descendant">descendant</a> that is a heading element (`h1`-`h6`), then use the subtree of the first such element
16450+
as defined in <a data-cite="accname-1.2/#comp_name_from_heading">accname: Name from Heading</a>.
16451+
</li>
16452+
<li>
16453+
If the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is still empty, then:, if the `dialog` element has a `title` attribute, then use that attribute.
16454+
</li>
16455+
<li>Otherwise, there is no <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a>.</li>
16456+
</ol>
16457+
</section>
1643816458
<section>
1643916459
<h4>`summary` Element Accessible Name Computation</h4>
1644016460
<ol>
@@ -16451,6 +16471,26 @@ <h4>`summary` Element Accessible Name Computation</h4>
1645116471
</li>
1645216472
</ol>
1645316473
</section>
16474+
<section>
16475+
<h4>`article` Element Accessible Name Computation</h4>
16476+
<ol>
16477+
<li>
16478+
If the `article` element has an <a data-cite="wai-aria-1.2/#aria-label">`aria-label`</a> or an
16479+
<a data-cite="wai-aria-1.2/#aria-labelledby">`aria-labelledby`</a> attribute the
16480+
<a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is to be calculated using the algorithm defined in
16481+
<a class="accname">Accessible Name and Description: Computation and API Mappings</a>.
16482+
</li>
16483+
<li>
16484+
If the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is still empty, then: if the `article` element has a
16485+
<a href="https://dom.spec.whatwg.org/#concept-tree-descendant">descendant</a> that is a heading element (`h1`-`h6`), then use the subtree of the first such element
16486+
as defined in <a data-cite="accname-1.2/#comp_name_from_heading">accname: Name from Heading</a>.
16487+
</li>
16488+
<li>
16489+
If the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is still empty, then:, if the `article` element has a `title` attribute, then use that attribute.
16490+
</li>
16491+
<li>Otherwise, there is no <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a>.</li>
16492+
</ol>
16493+
</section>
1645416494
<section>
1645516495
<h4>`figure` Element Accessible Name Computation</h4>
1645616496
<ol>
@@ -16547,7 +16587,7 @@ <h4>`iframe` Element Accessible Name Computation</h4>
1654716587
<p class="note">The document referenced by the `src` of the `iframe` element gets its name from that document's `title` element, like any other document. If there is no `title` provided, there is no accessible name.</p>
1654816588
</section>
1654916589
<section>
16550-
<h4>Section and Grouping Element Accessible Name Computation</h4>
16590+
<h4>Other Section and Grouping Element Accessible Name Computation</h4>
1655116591
<ol>
1655216592
<li>
1655316593
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 <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>.

0 commit comments

Comments
 (0)