Skip to content

Commit b6131e5

Browse files
committed
Update the from PR #1018 for nameFrom: heading
Closes #899
1 parent f91a328 commit b6131e5

File tree

1 file changed

+47
-20
lines changed

1 file changed

+47
-20
lines changed

index.html

Lines changed: 47 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -617,9 +617,11 @@ <h3>Accessible Name Calculation</h3>
617617
<dd>One of the following values:
618618
<ol>
619619
<li>author: name comes from values provided by the author in explicit markup features such as the <pref>aria-label</pref> attribute, the <pref>aria-labelledby</pref> attribute, or the host language labeling mechanism, such as the <code>alt</code> or <code>title</code> attributes in <abbr title="Hypertext Markup Language">HTML</abbr>, with HTML <code>title</code> attribute having the lowest precedence for specifying a text alternative.</li>
620-
<li>contents: name comes from the text value of the <a>element</a> node. Although this may be allowed in addition to "author" in some <a>roles</a>, this is used in content only if higher priority "author" features are not provided. Priority is defined by the <a href="#mapping_additional_nd_te" class="accname">accessible name and description computation</a> algorithm [[ACCNAME-1.2]].</li>
620+
<li>heading: name comes from the text value of the first descendant (i.e., depth first) <a>element</a> node with the role of <code>heading</code>. Although "heading" may be allowed in addition to "author" in some <a>roles</a>, "heading" is used in content only if higher priority "author" features are not provided.</li>
621+
<li>contents: name comes from the text value of the <a>element</a> node. Although this may be allowed in addition to "author" in some <a>roles</a>, this is used in content only if higher priority "author" features are not provided.</li>
621622
<li>prohibited: the element does not support name from author. Authors MUST NOT use the <pref>aria-label</pref> or <pref>aria-labelledby</pref> attributes to name the element.</li>
622623
</ol>
624+
<p>Priority is defined by the <a href="#mapping_additional_nd_te" class="accname">accessible name and description computation</a> algorithm. [[ACCNAME-1.3]]<p>
623625
</dd>
624626
</dl>
625627
<section id="namecomputation">
@@ -634,21 +636,22 @@ <h4>Description Computation</h4>
634636
<h4>Accessible Name and Description Computation</h4>
635637
<p><a href="#mapping_additional_nd_te" class="accname">Accessible Name and Description Computation</a> is defined in the Accessible Name and Description specification.</p>
636638
</section>
637-
<section id="namefromauthor">
638-
<h4>Roles Supporting Name from Author</h4>
639-
<div id="index_fromauthor">
640-
</div>
639+
<section id="namefromauthor">
640+
<h4>Roles Supporting Name from Author</h4>
641+
<div id="index_fromauthor"></div>
641642
</section>
642-
<section id="namefromcontent">
643-
<h4>Roles Supporting Name from Content</h4>
644-
<div id="index_fromcontent">
645-
</div>
643+
<section id="namefromheading">
644+
<h4>Roles Supporting Name from Heading</h4>
645+
<div id="index_fromheading"></div>
646+
</section>
647+
<section id="namefromcontent">
648+
<h4>Roles Supporting Name from Content</h4>
649+
<div id="index_fromcontent"></div>
646650
</section>
647651
<section id="namefromprohibited">
648-
<h4>Roles which cannot be named (Name prohibited)</h4>
649-
<div id="index_fromprohibited">
650-
</div>
651-
</section>
652+
<h4>Roles which cannot be named (Name prohibited)</h4>
653+
<div id="index_fromprohibited"></div>
654+
</section>
652655
</section>
653656
<section id="childrenArePresentational">
654657
<h3>Presentational Children</h3>
@@ -988,7 +991,12 @@ <h2>Definition of Roles</h2>
988991
</tr>
989992
<tr>
990993
<th class="role-namefrom-head" scope="row">Name From:</th>
991-
<td class="role-namefrom">author</td>
994+
<td class="role-namefrom">
995+
<ul>
996+
<li>author</li>
997+
<li>heading</li>
998+
</ul>
999+
</td>
9921000
</tr>
9931001
<tr>
9941002
<th class="role-namerequired-head" scope="row">Accessible Name Required:</th>
@@ -1168,7 +1176,12 @@ <h2>Definition of Roles</h2>
11681176
</tr>
11691177
<tr>
11701178
<th class="role-namefrom-head" scope="row">Name From:</th>
1171-
<td class="role-namefrom">author</td>
1179+
<td class="role-namefrom">
1180+
<ul>
1181+
<li>author</li>
1182+
<li>heading</li>
1183+
</ul>
1184+
</td>
11721185
</tr>
11731186
<tr>
11741187
<th class="role-namerequired-head" scope="row">Accessible Name Required:</th>
@@ -2660,7 +2673,12 @@ <h2>Definition of Roles</h2>
26602673
</tr>
26612674
<tr>
26622675
<th class="role-namefrom-head" scope="row">Name From:</th>
2663-
<td class="role-namefrom">author</td>
2676+
<td class="role-namefrom">
2677+
<ul>
2678+
<li>author</li>
2679+
<li>heading</li>
2680+
</ul>
2681+
</td>
26642682
</tr>
26652683
<tr>
26662684
<th class="role-namerequired-head" scope="row">Accessible Name Required:</th>
@@ -3018,7 +3036,6 @@ <h2>Definition of Roles</h2>
30183036
<div class="role-description">
30193037
<p>A dialog is a descendant window of the primary window of a web application. For <abbr title="Hypertext Markup Language">HTML</abbr> pages, the primary application window is the entire web document, i.e., the <code>body</code> element.</p>
30203038
<p>Dialogs are most often used to prompt the user to enter or respond to information. A dialog that is designed to interrupt workflow is usually modal. See related <rref>alertdialog</rref>.</p>
3021-
<p>Authors MUST provide an accessible name for a dialog, which can be done with the <pref>aria-label</pref> or <pref>aria-labelledby</pref> attribute.</p>
30223039
<p>Authors SHOULD ensure that all dialogs (both modal and non-modal) have at least one focusable descendant element. Authors SHOULD focus an element in the modal dialog when it is displayed, and authors SHOULD manage focus of modal dialogs.</p>
30233040
<p class="note">In the description of this role, the term "web application" does not refer to the <rref>application</rref> role, which specifies specific assistive technology behaviors.</p>
30243041
</div>
@@ -3073,7 +3090,12 @@ <h2>Definition of Roles</h2>
30733090
</tr>
30743091
<tr>
30753092
<th class="role-namefrom-head" scope="row">Name From:</th>
3076-
<td class="role-namefrom">author</td>
3093+
<td class="role-namefrom">
3094+
<ul>
3095+
<li>author</li>
3096+
<li>heading</li>
3097+
</ul>
3098+
</td>
30773099
</tr>
30783100
<tr>
30793101
<th class="role-namerequired-head" scope="row">Accessible Name Required:</th>
@@ -6802,7 +6824,7 @@ <h5>Presentational Role Inheritance</h5>
68026824
<div class="role-description">
68036825
<p>A <rref>landmark</rref> containing content that is relevant to a specific, author-specified purpose and sufficiently important that users will likely want to be able to navigate to the section easily and to have it listed in a summary of the page. Such a page summary could be generated dynamically by a user agent or assistive technology.</p>
68046826
<p>Authors SHOULD limit use of the region role to sections containing content with a purpose that is not accurately described by one of the other <a href="#landmark_roles">landmark roles</a>, such as <rref>main</rref>, <rref>complementary</rref>, or <rref>navigation</rref>.</p>
6805-
<p>Authors MUST give each element with role region a brief label that describes the purpose of the content in the region. Authors SHOULD reference a visible label with <pref>aria-labelledby</pref> if a visible label is present. Authors SHOULD include the label inside of a heading whenever possible. The heading MAY be an instance of the standard host language heading element or an instance of an element with role <rref>heading</rref>.</p>
6827+
<p>Authors MUST give each element with a region role a brief label that describes the purpose of the region. For host languages that support elements with the default role of region (e.g., HTML <code>section</code>), authors would need to specify an explicit <code>role="region"</code> on the element to enable the nameFrom: heading technique.</p>
68066828
<p><a>Assistive technologies</a> SHOULD enable users to quickly navigate to elements with role <code>region</code>.
68076829
[=User agents=] SHOULD treat elements with role <code>region</code> and have an accessible name as navigational <a>landmarks</a>.
68086830
[=User agents=] MAY enable users to quickly navigate to elements with role <code>region</code>.</p>
@@ -6858,7 +6880,12 @@ <h5>Presentational Role Inheritance</h5>
68586880
</tr>
68596881
<tr>
68606882
<th class="role-namefrom-head" scope="row">Name From:</th>
6861-
<td class="role-namefrom">author</td>
6883+
<td class="role-namefrom">
6884+
<ul>
6885+
<li>author</li>
6886+
<li>heading</li>
6887+
</ul>
6888+
</td>
68626889
</tr>
68636890
<tr>
68646891
<th class="role-namerequired-head" scope="row">Accessible Name Required:</th>

0 commit comments

Comments
 (0)