[html5] r7284 - [t] (0) Ignore hidden='' elements in outlines. Fixing https://www.w3.org/Bugs/Pu [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Aug 27 13:04:01 PDT 2012


Author: ianh
Date: 2012-08-27 13:04:00 -0700 (Mon, 27 Aug 2012)
New Revision: 7284

Modified:
   complete.html
   index
   source
Log:
[t] (0) Ignore hidden='' elements in outlines.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=15767
Affected topics: HTML

Modified: complete.html
===================================================================
--- complete.html	2012-08-27 19:32:58 UTC (rev 7283)
+++ complete.html	2012-08-27 20:04:00 UTC (rev 7284)
@@ -19255,19 +19255,19 @@
 
    <li>
 
-    <p>As you walk over the DOM in <a href=#tree-order>tree order</a>, starting
-    with the <a href=#sectioning-content>sectioning content</a> element or
-    <a href=#sectioning-root>sectioning root</a> element at the root of the subtree
-    for which an outline is to be created, trigger the first relevant
-    step below for each element as you enter and exit it.</p>
+    <p>Walk over the DOM in <a href=#tree-order>tree order</a>, starting with the
+    <a href=#sectioning-content>sectioning content</a> element or <a href=#sectioning-root>sectioning
+    root</a> element at the root of the subtree for which an
+    outline is to be created, and trigger the first relevant step
+    below for each element as the walk enters and exits it.</p>
 
-    <dl class=switch><dt>If you are exiting an element and that element is the element
-     at the top of the stack</dt>
+    <dl class=switch><dt>When exiting an element, if that element is the element at
+     the top of the stack</dt>
 
      <dd>
 
       <p class=note>The element being exited is a <a href=#heading-content>heading
-      content</a> element.</p>
+      content</a> element or an element with a <code title=attr-hidden><a href=#the-hidden-attribute>hidden</a></code> attribute.</p>
 
       <p>Pop that element from the stack.</p>
 
@@ -19275,11 +19275,22 @@
 
 
      <dt>If the top of the stack is a <a href=#heading-content>heading content</a>
-     element</dt>
+     element or an element with a <code title=attr-hidden><a href=#the-hidden-attribute>hidden</a></code> attribute</dt>
 
      <dd><p>Do nothing.</dd>
 
 
+     <dt>When entering an element with a <code title=attr-hidden><a href=#the-hidden-attribute>hidden</a></code> attribute</dt>
+
+     <dd>
+
+      <p>Push the element being entered onto the stack. (This causes
+      the algorithm to skip that element and any descendants of the
+      element.)</p>
+
+     </dd>
+
+
      <dt>When entering a <a href=#sectioning-content>sectioning content</a> element or a
      <a href=#sectioning-root>sectioning root</a> element</dt>
 
@@ -19432,10 +19443,11 @@
 
      <dd><p>Do nothing.</dd>
 
-    </dl><p id=associatedSection>In addition, whenever you exit a node,
-    after doing the steps above, if the node is not associated with a
-    <a href=#concept-section title=concept-section>section</a> yet, associate the
-    node with the <a href=#concept-section title=concept-section>section</a> <var title="">current section</var>.</p>
+    </dl><p id=associatedSection>In addition, whenever the walk exits a
+    node, after doing the steps above, if the node is not associated
+    with a <a href=#concept-section title=concept-section>section</a> yet, associate
+    the node with the <a href=#concept-section title=concept-section>section</a>
+    <var title="">current section</var>.</p>
 
    </li>
 

Modified: index
===================================================================
--- index	2012-08-27 19:32:58 UTC (rev 7283)
+++ index	2012-08-27 20:04:00 UTC (rev 7284)
@@ -19255,19 +19255,19 @@
 
    <li>
 
-    <p>As you walk over the DOM in <a href=#tree-order>tree order</a>, starting
-    with the <a href=#sectioning-content>sectioning content</a> element or
-    <a href=#sectioning-root>sectioning root</a> element at the root of the subtree
-    for which an outline is to be created, trigger the first relevant
-    step below for each element as you enter and exit it.</p>
+    <p>Walk over the DOM in <a href=#tree-order>tree order</a>, starting with the
+    <a href=#sectioning-content>sectioning content</a> element or <a href=#sectioning-root>sectioning
+    root</a> element at the root of the subtree for which an
+    outline is to be created, and trigger the first relevant step
+    below for each element as the walk enters and exits it.</p>
 
-    <dl class=switch><dt>If you are exiting an element and that element is the element
-     at the top of the stack</dt>
+    <dl class=switch><dt>When exiting an element, if that element is the element at
+     the top of the stack</dt>
 
      <dd>
 
       <p class=note>The element being exited is a <a href=#heading-content>heading
-      content</a> element.</p>
+      content</a> element or an element with a <code title=attr-hidden><a href=#the-hidden-attribute>hidden</a></code> attribute.</p>
 
       <p>Pop that element from the stack.</p>
 
@@ -19275,11 +19275,22 @@
 
 
      <dt>If the top of the stack is a <a href=#heading-content>heading content</a>
-     element</dt>
+     element or an element with a <code title=attr-hidden><a href=#the-hidden-attribute>hidden</a></code> attribute</dt>
 
      <dd><p>Do nothing.</dd>
 
 
+     <dt>When entering an element with a <code title=attr-hidden><a href=#the-hidden-attribute>hidden</a></code> attribute</dt>
+
+     <dd>
+
+      <p>Push the element being entered onto the stack. (This causes
+      the algorithm to skip that element and any descendants of the
+      element.)</p>
+
+     </dd>
+
+
      <dt>When entering a <a href=#sectioning-content>sectioning content</a> element or a
      <a href=#sectioning-root>sectioning root</a> element</dt>
 
@@ -19432,10 +19443,11 @@
 
      <dd><p>Do nothing.</dd>
 
-    </dl><p id=associatedSection>In addition, whenever you exit a node,
-    after doing the steps above, if the node is not associated with a
-    <a href=#concept-section title=concept-section>section</a> yet, associate the
-    node with the <a href=#concept-section title=concept-section>section</a> <var title="">current section</var>.</p>
+    </dl><p id=associatedSection>In addition, whenever the walk exits a
+    node, after doing the steps above, if the node is not associated
+    with a <a href=#concept-section title=concept-section>section</a> yet, associate
+    the node with the <a href=#concept-section title=concept-section>section</a>
+    <var title="">current section</var>.</p>
 
    </li>
 

Modified: source
===================================================================
--- source	2012-08-27 19:32:58 UTC (rev 7283)
+++ source	2012-08-27 20:04:00 UTC (rev 7284)
@@ -20613,21 +20613,22 @@
 
    <li>
 
-    <p>As you walk over the DOM in <span>tree order</span>, starting
-    with the <span>sectioning content</span> element or
-    <span>sectioning root</span> element at the root of the subtree
-    for which an outline is to be created, trigger the first relevant
-    step below for each element as you enter and exit it.</p>
+    <p>Walk over the DOM in <span>tree order</span>, starting with the
+    <span>sectioning content</span> element or <span>sectioning
+    root</span> element at the root of the subtree for which an
+    outline is to be created, and trigger the first relevant step
+    below for each element as the walk enters and exits it.</p>
 
     <dl class="switch">
 
-     <dt>If you are exiting an element and that element is the element
-     at the top of the stack</dt>
+     <dt>When exiting an element, if that element is the element at
+     the top of the stack</dt>
 
      <dd>
 
       <p class="note">The element being exited is a <span>heading
-      content</span> element.</p>
+      content</span> element or an element with a <code
+      title="attr-hidden">hidden</code> attribute.</p>
 
       <p>Pop that element from the stack.</p>
 
@@ -20635,11 +20636,24 @@
 
 
      <dt>If the top of the stack is a <span>heading content</span>
-     element</dt>
+     element or an element with a <code
+     title="attr-hidden">hidden</code> attribute</dt>
 
      <dd><p>Do nothing.</p></dd>
 
 
+     <dt>When entering an element with a <code
+     title="attr-hidden">hidden</code> attribute</dt>
+
+     <dd>
+
+      <p>Push the element being entered onto the stack. (This causes
+      the algorithm to skip that element and any descendants of the
+      element.)</p>
+
+     </dd>
+
+
      <dt>When entering a <span>sectioning content</span> element or a
      <span>sectioning root</span> element</dt>
 
@@ -20820,11 +20834,11 @@
 
     </dl>
 
-    <p id="associatedSection">In addition, whenever you exit a node,
-    after doing the steps above, if the node is not associated with a
-    <span title="concept-section">section</span> yet, associate the
-    node with the <span title="concept-section">section</span> <var
-    title="">current section</var>.</p>
+    <p id="associatedSection">In addition, whenever the walk exits a
+    node, after doing the steps above, if the node is not associated
+    with a <span title="concept-section">section</span> yet, associate
+    the node with the <span title="concept-section">section</span>
+    <var title="">current section</var>.</p>
 
    </li>
 




More information about the Commit-Watchers mailing list