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
<metaname="description" content="This document describes how user agents determine the names and descriptions of accessible objects from web content languages. This information is in turn exposed through accessibility APIs so that assistive technologies can identify these objects and present their names or descriptions to users. Documenting the algorithm through which names and descriptions are to be determined promotes interoperable exposure of these properties among different accessibility APIs and helps to ensure that this information appears in a manner consistent with author intent.">
<spanclass="p-name fn">Richard Schwerdtfeger</span> (<aclass="p-org org h-org" href="https://knowbility.org/">Knowbility</a>) (Editor until October 2017)
@@ -535,6 +535,8 @@ <h1 id="title" class="title">Accessible Name and Description Computation 1.2</h1
535
535
<dd>The <abbrtitle="Document Object Model">DOM</abbr><adata-link-type="dfn|abstract-op" data-lt="nodes" data-type="dfn" href="https://dom.spec.whatwg.org/#concept-node">node</a> or <adata-link-type="dfn|abstract-op" data-type="dfn" href="https://dom.spec.whatwg.org/#concept-element">element</a> for which the text alternative is sought.</dd>
536
536
<dt>Current node</dt>
537
537
<dd>The <abbrtitle="Document Object Model">DOM</abbr><adata-link-type="dfn|abstract-op" data-lt="nodes" data-type="dfn" href="https://dom.spec.whatwg.org/#concept-node">node</a> currently traversed to compute the <code>root node</code>'s text equivalent. Initially, the <code>current node</code> is the <code>root node</code>, but at later stages is either some descendant of the <code>root node</code>, or another referenced node.</dd>
538
+
<dt>Rendered child nodes</dt>
539
+
<dd>The <adata-link-type="dfn|abstract-op" data-type="dfn" href="https://dom.spec.whatwg.org/#concept-node">nodes</a> that are rendered as child nodes of a given node when taking <adata-link-type="dfn|abstract-op" data-lt="shadow root" data-type="dfn" href="https://dom.spec.whatwg.org/#concept-shadow-root">shadow roots</a> and <adata-link-type="dfn|abstract-op" data-lt="slot" data-type="dfn" href="https://dom.spec.whatwg.org/#concept-slot">slots</a> into consideration.</dd>
538
540
<dt>Flat string</dt>
539
541
<dd>A string of characters where all carriage returns, newlines, tabs, and form-feeds are replaced with a single space, and multiple spaces are reduced to a single space. The string contains only character data; it does not contain any markup. </dd>
540
542
<dt>Total accumulated text</dt>
@@ -711,9 +713,17 @@ <h1 id="title" class="title">Accessible Name and Description Computation 1.2</h1
711
713
<liid="comp_name_from_content_pseudo_element_after">For <code>::after</code> pseudo elements, <aclass="termref informative" data-type="dfn" href="https://infra.spec.whatwg.org/#user-agent">User agents</a><emclass="rfc2119">MUST</em> append <abbrtitle="Cascading Style Sheets">CSS</abbr> textual content, without a space, to the textual content of the <code>current node</code>. </li>
712
714
</ol>
713
715
</li>
714
-
<liid="comp_name_from_content_for_each_child"><spanid="step2F.iii"></span><em>Name From Each Child:</em> For each child node of the <code>current node</code>:
716
+
717
+
<liid="comp_name_from_content_find_child"><em>Determine Child Nodes:</em> Determine the <code>rendered child nodes</code> of the <code>current node</code>:
718
+
<ol>
719
+
<liid="comp_name_from_content_find_child_has_shadow_root">If the <code>current node</code> has an attached <adata-link-type="dfn|abstract-op" data-type="dfn" href="https://dom.spec.whatwg.org/#concept-shadow-root">shadow root</a>, set the <code>rendered child nodes</code> to be the child nodes of the <adata-link-type="dfn|abstract-op" data-type="dfn" href="https://dom.spec.whatwg.org/#concept-shadow-root">shadow root</a>.</li>
720
+
<liid="comp_name_from_content_find_child_is_slot">Otherwise, if the <code>current node</code> is a <adata-link-type="dfn|abstract-op" data-type="dfn" href="https://dom.spec.whatwg.org/#concept-slot">slot</a> with <adata-link-type="dfn|abstract-op" data-type="dfn" href="https://dom.spec.whatwg.org/#slot-assigned-nodes">assigned nodes</a>, set the <code>rendered child nodes</code> to be the <adata-link-type="dfn|abstract-op" data-type="dfn" href="https://dom.spec.whatwg.org/#slot-assigned-nodes">assigned nodes</a> of the <code>current node</code>.</li>
721
+
<liid="comp_name_from_content_find_child_otherwise">Otherwise, set the <code>rendered child nodes</code> to be the child nodes of the <code>current node</code>.</li>
722
+
</ol>
723
+
</li>
724
+
<liid="comp_name_from_content_for_each_child"><spanid="step2F.iii"></span><em>Name From Each Child:</em> For each <code>rendered child node</code> of the <code>current node</code>:
715
725
<ol>
716
-
<liid="comp_name_from_content_for_each_child_set_current"><spanid="step2F.iii.a"></span>Set the <code>current node</code> to the child node.</li>
726
+
<liid="comp_name_from_content_for_each_child_set_current"><spanid="step2F.iii.a"></span>Set the <code>current node</code> to the <code>rendered child node</code>.</li>
717
727
<liid="comp_name_from_content_for_each_child_recursion"><spanid="step2F.iii.b"></span>Compute the text alternative of the <code>current node</code> beginning with the overall <ahref="#comp_computation">Computation</a> step. Set the <code>result</code> to that text alternative.</li>
718
728
<liid="comp_for_each_child_append"><spanid="step2F.iii.c"></span>Append the <code>result</code> to the <code>accumulated text</code>. </li>
719
729
</ol>
@@ -886,7 +896,7 @@ <h1 id="title" class="title">Accessible Name and Description Computation 1.2</h1
886
896
</dd><dtid="bib-dom">[DOM]</dt><dd>
887
897
<ahref="https://dom.spec.whatwg.org/"><cite>DOM Standard</cite></a>. Anne van Kesteren. WHATWG. Living Standard. URL: <ahref="https://dom.spec.whatwg.org/">https://dom.spec.whatwg.org/</a>
<ahref="https://www.w3.org/TR/html-aam-1.0/"><cite>HTML Accessibility API Mappings 1.0</cite></a>. Scott O'Hara. W3C. 4 December 2023. W3C Working Draft. URL: <ahref="https://www.w3.org/TR/html-aam-1.0/">https://www.w3.org/TR/html-aam-1.0/</a>
899
+
<ahref="https://www.w3.org/TR/html-aam-1.0/"><cite>HTML Accessibility API Mappings 1.0</cite></a>. Scott O'Hara. W3C. 6 February 2024. W3C Working Draft. URL: <ahref="https://www.w3.org/TR/html-aam-1.0/">https://www.w3.org/TR/html-aam-1.0/</a>
890
900
</dd><dtid="bib-infra">[infra]</dt><dd>
891
901
<ahref="https://infra.spec.whatwg.org/"><cite>Infra Standard</cite></a>. Anne van Kesteren; Domenic Denicola. WHATWG. Living Standard. URL: <ahref="https://infra.spec.whatwg.org/">https://infra.spec.whatwg.org/</a>
0 commit comments