You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: index.html
+41-1Lines changed: 41 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16435,6 +16435,26 @@ <h4>Other Form Elements Accessible Name Computation</h4>
16435
16435
</li>
16436
16436
</ol>
16437
16437
</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>
16438
16458
<section>
16439
16459
<h4>`summary` Element Accessible Name Computation</h4>
16440
16460
<ol>
@@ -16451,6 +16471,26 @@ <h4>`summary` Element Accessible Name Computation</h4>
16451
16471
</li>
16452
16472
</ol>
16453
16473
</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>
16454
16494
<section>
16455
16495
<h4>`figure` Element Accessible Name Computation</h4>
16456
16496
<ol>
@@ -16547,7 +16587,7 @@ <h4>`iframe` Element Accessible Name Computation</h4>
16547
16587
<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>
16548
16588
</section>
16549
16589
<section>
16550
-
<h4>Section and Grouping Element Accessible Name Computation</h4>
16590
+
<h4>Other Section and Grouping Element Accessible Name Computation</h4>
16551
16591
<ol>
16552
16592
<li>
16553
16593
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