Skip to content

[html-aam PR 529] Addition: Name from heading #2215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 37 additions & 3 deletions html-aam/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15921,7 +15921,7 @@ <h4>`fieldset` Element Accessible Name Computation</h4>
</li>
<li>
If the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is still empty, then: if the `fieldset` element has a
<a href="https://dom.spec.whatwg.org/#concept-tree-child">child</a> that is a <code>legend</code> element, then use the subtree of the first such element.
<a href="https://dom.spec.whatwg.org/#concept-tree-child">child</a> that is a <code>legend</code> element, then use the accessible name of the first such element.
</li>
<li>If the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is still empty, then:, if the `fieldset` element has a `title` attribute, then use that attribute.</li>
<li>Otherwise, there is no <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a>.</li>
Expand Down Expand Up @@ -15956,6 +15956,23 @@ <h4>Other Form Elements Accessible Name Computation</h4>
<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>
</ol>
</section>
<section>
<h4>`dialog` Element Accessible Name Computation</h4>
<ol>
<li>
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> attribute the
<a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is to be calculated using the algorithm defined in
<a class="accname">Accessible Name and Description: Computation and API Mappings</a>.
</li>
<li>
If the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is still empty, then: if the `dialog` element has a
<a href="https://dom.spec.whatwg.org/#concept-tree-descendant">descendant</a> that is a heading element (`h1`-`h6`), then use the accessible name of the first such element as defined in
<a data-cite="accname-1.2/#comp_name_from_heading">accname: Name from Heading</a>.
</li>
<li>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.</li>
<li>Otherwise, there is no <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a>.</li>
</ol>
</section>
<section>
<h4>`summary` Element Accessible Name Computation</h4>
<ol>
Expand All @@ -15973,6 +15990,23 @@ <h4>`summary` Element Accessible Name Computation</h4>
</li>
</ol>
</section>
<section>
<h4>`article` Element Accessible Name Computation</h4>
<ol>
<li>
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> attribute the
<a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is to be calculated using the algorithm defined in
<a class="accname">Accessible Name and Description: Computation and API Mappings</a>.
</li>
<li>
If the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is still empty, then: if the `article` element has a
<a href="https://dom.spec.whatwg.org/#concept-tree-descendant">descendant</a> that is a heading element (`h1`-`h6`), then use the accessible name of the first such element as defined in
<a data-cite="accname-1.2/#comp_name_from_heading">accname: Name from Heading</a>.
</li>
<li>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.</li>
<li>Otherwise, there is no <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a>.</li>
</ol>
</section>
<section>
<h4>`figure` Element Accessible Name Computation</h4>
<ol>
Expand Down Expand Up @@ -16018,7 +16052,7 @@ <h4>`table` Element Accessible Name Computation</h4>
</li>
<li>
If the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is still empty, then: if the `table` element has a
<a href="https://dom.spec.whatwg.org/#concept-tree-child">child</a> that is a <code>caption</code> element, then use the subtree of the first such element.
<a href="https://dom.spec.whatwg.org/#concept-tree-child">child</a> that is a <code>caption</code> element, then use the accessible name of the first such element.
</li>
<li>If the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is still empty, then: if the `table` element has a `title` attribute, then use that attribute.</li>
<li>Otherwise, there is no <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a>.</li>
Expand Down Expand Up @@ -16079,7 +16113,7 @@ <h4>`iframe` Element Accessible Name Computation</h4>
</p>
</section>
<section>
<h4>Section and Grouping Element Accessible Name Computation</h4>
<h4>Other Section and Grouping Element Accessible Name Computation</h4>
<ol>
<li>
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
Expand Down
Loading