HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/3726

File a bug

SVNBugCommentTime (UTC)
3726Add support for ARIA aria-level for headings; try confusing people less with <hgroup>.2009-09-02 01:04
Index: source
===================================================================
--- source	(revision 3725)
+++ source	(revision 3726)
@@ -9349,27 +9349,27 @@
 
     <tr>
      <td><code>h1</code> element that does not have an <code>hgroup</code> ancestor
-     <td><code title="attr-aria-role-heading">heading</code> role
+     <td><code title="attr-aria-role-heading">heading</code> role, with the <code title="attr-aria-level">aria-level</code> property set to the element's <span>outline depth</span>
 
     <tr>
      <td><code>h2</code> element that does not have an <code>hgroup</code> ancestor
-     <td><code title="attr-aria-role-heading">heading</code> role
+     <td><code title="attr-aria-role-heading">heading</code> role, with the <code title="attr-aria-level">aria-level</code> property set to the element's <span>outline depth</span>
 
     <tr>
      <td><code>h3</code> element that does not have an <code>hgroup</code> ancestor
-     <td><code title="attr-aria-role-heading">heading</code> role
+     <td><code title="attr-aria-role-heading">heading</code> role, with the <code title="attr-aria-level">aria-level</code> property set to the element's <span>outline depth</span>
 
     <tr>
      <td><code>h4</code> element that does not have an <code>hgroup</code> ancestor
-     <td><code title="attr-aria-role-heading">heading</code> role
+     <td><code title="attr-aria-role-heading">heading</code> role, with the <code title="attr-aria-level">aria-level</code> property set to the element's <span>outline depth</span>
 
     <tr>
      <td><code>h5</code> element that does not have an <code>hgroup</code> ancestor
-     <td><code title="attr-aria-role-heading">heading</code> role
+     <td><code title="attr-aria-role-heading">heading</code> role, with the <code title="attr-aria-level">aria-level</code> property set to the element's <span>outline depth</span>
 
     <tr>
      <td><code>h6</code> element that does not have an <code>hgroup</code> ancestor
-     <td><code title="attr-aria-role-heading">heading</code> role
+     <td><code title="attr-aria-role-heading">heading</code> role, with the <code title="attr-aria-level">aria-level</code> property set to the element's <span>outline depth</span>
 
     <tr>
      <td><code>header</code> element
@@ -9377,7 +9377,7 @@
 
     <tr>
      <td><code>hgroup</code> element
-     <td><code title="attr-aria-role-heading">heading</code> role
+     <td><code title="attr-aria-role-heading">heading</code> role, with the <code title="attr-aria-level">aria-level</code> property set to the element's <span>outline depth</span>
 
     <tr>
      <td><code>hr</code> element
@@ -13820,12 +13820,6 @@
   multiple levels, such as subheadings, alternative titles, or
   taglines.</p>
 
-  <p class="note">The point of <code>hgroup</code> is to mask an
-  <code>h2</code> element (that acts as a secondary title) from the
-  <span>outline</span> algorithm.</p><!--
-  http://www.brucelawson.co.uk/2009/html-5-is-a-mess/#comment-618895
-  -->
-
   <p>For the purposes of document summaries, outlines, and the like,
   the text of <code>hgroup</code> elements is defined to be the text
   of the highest <span title="rank">ranked</span>
@@ -13865,6 +13859,12 @@
  &lt;h2&gt;Or: How I Learned to Stop Worrying and Love the Bomb&lt;/h2&gt;
 &lt;/hgroup&gt;</pre>
 
+  <p>The point of using <code>hgroup</code> in these examples is to
+  mask the <code>h2</code> element (which acts as a secondary title)
+  from the <span>outline</span> algorithm.</p><!--
+  http://www.brucelawson.co.uk/2009/html-5-is-a-mess/#comment-618895
+  -->
+
   </div>
 
 
@@ -14594,6 +14594,18 @@
   always takes the user to the top of the document, regardless of
   where the first heading in the <code>body</code> is to be found.</p>
 
+  <p>The <dfn>outline depth</dfn> of a <span>heading content</span>
+  element associated with a <span
+  title="concept-section">section</span> <var title="">section</var>
+  is the number of <span title="concept-section">sections</span> that
+  are ancestors of <var title="">section</var> in the
+  <span>outline</span> that <var title="">section</var> finds itself
+  in when the <span title="outline">outlines</span> of its
+  <code>Document</code>'s elements are created, plus 1. The
+  <span>outline depth</span> of a <span>heading content</span> element
+  not associated with a <span title="concept-section">section</span>
+  is 1.</p>
+
   <div class="note">
 
    <p>The following JavaScript function shows how the tree walk could

|