Skip to content

Commit

Permalink
[t] (1) Make the outline algorithm also associate text nodes and comm…
Browse files Browse the repository at this point in the history
…ents with the sections

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=25870
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@8649 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 23, 2014
1 parent b5cf45a commit 4557434
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
11 changes: 7 additions & 4 deletions complete.html
Expand Up @@ -290,7 +290,7 @@
</script><body onload=init()>
<header class="head with-buttons" id=head><p><a href=//www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 22 May 2014</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 23 May 2014</h2>
</hgroup><div>
<div>
<a href=//whatwg.org/html><span><strong>Multipage Version</strong> <code>whatwg.org/html</code></span></a>
Expand Down Expand Up @@ -15703,8 +15703,11 @@ <h5 id=outlines><span class=secno>4.3.11.1 </span>Creating an outline</h5>

</li>

<li><p>Associate all nodes with the heading of the <a href=#concept-section title=concept-section>section</a>
with which they are associated, if any.</li>
<li><p>Associate all non-element nodes that are in the subtree for which an outline is being
created with the <a href=#concept-section title=concept-section>section</a> with which their parent element is
associated.</li>

<li><p>Associate all nodes in the subtree with the heading of the <a href=#concept-section title=concept-section>section</a> with which they are associated, if any.</li>

</ol><p>The tree of sections created by the algorithm above, or a proper subset thereof, must be used
when generating document outlines, for example when generating tables of contents.</p>
Expand Down Expand Up @@ -48940,7 +48943,7 @@ <h6 id=processing-model-2><span class=secno>4.10.19.8.2 </span>Processing model<

<p class=example>For example, it would not be conforming if the user agent decided that it
should offer the address it knows to be the user's daughter's address for "<code title="">section-child</code>" and the addresses it knows to be the user's spouses' addresses for
"<code title="">section-spouse</code>".
"<code title="">section-spouse</code>".</p>

<p>The autocompletion mechanism must be implemented by the user agent acting as if the user had
modified the <a href="#control's-data">control's data</a>, and must be done at a time where the element is <i title=concept-fe-mutable><a href=#concept-fe-mutable>mutable</a></i> (e.g. just after the element has been inserted into the
Expand Down
11 changes: 7 additions & 4 deletions index
Expand Up @@ -290,7 +290,7 @@
</script><body onload=init()>
<header class="head with-buttons" id=head><p><a href=//www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 22 May 2014</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 23 May 2014</h2>
</hgroup><div>
<div>
<a href=//whatwg.org/html><span><strong>Multipage Version</strong> <code>whatwg.org/html</code></span></a>
Expand Down Expand Up @@ -15703,8 +15703,11 @@ Space is not the only void</pre>

</li>

<li><p>Associate all nodes with the heading of the <a href=#concept-section title=concept-section>section</a>
with which they are associated, if any.</li>
<li><p>Associate all non-element nodes that are in the subtree for which an outline is being
created with the <a href=#concept-section title=concept-section>section</a> with which their parent element is
associated.</li>

<li><p>Associate all nodes in the subtree with the heading of the <a href=#concept-section title=concept-section>section</a> with which they are associated, if any.</li>

</ol><p>The tree of sections created by the algorithm above, or a proper subset thereof, must be used
when generating document outlines, for example when generating tables of contents.</p>
Expand Down Expand Up @@ -48940,7 +48943,7 @@ MIT Room 32-G524

<p class=example>For example, it would not be conforming if the user agent decided that it
should offer the address it knows to be the user's daughter's address for "<code title="">section-child</code>" and the addresses it knows to be the user's spouses' addresses for
"<code title="">section-spouse</code>".
"<code title="">section-spouse</code>".</p>

<p>The autocompletion mechanism must be implemented by the user agent acting as if the user had
modified the <a href="#control's-data">control's data</a>, and must be done at a time where the element is <i title=concept-fe-mutable><a href=#concept-fe-mutable>mutable</a></i> (e.g. just after the element has been inserted into the
Expand Down
10 changes: 7 additions & 3 deletions source
Expand Up @@ -16355,8 +16355,12 @@ Space is not the only void</pre>

</li>

<li><p>Associate all nodes with the heading of the <span data-x="concept-section">section</span>
with which they are associated, if any.</p></li>
<li><p>Associate all non-element nodes that are in the subtree for which an outline is being
created with the <span data-x="concept-section">section</span> with which their parent element is
associated.</p></li>

<li><p>Associate all nodes in the subtree with the heading of the <span
data-x="concept-section">section</span> with which they are associated, if any.</p></li>

</ol>

Expand Down Expand Up @@ -52701,7 +52705,7 @@ MIT Room 32-G524
<p class="example">For example, it would not be conforming if the user agent decided that it
should offer the address it knows to be the user's daughter's address for "<code
data-x="">section-child</code>" and the addresses it knows to be the user's spouses' addresses for
"<code data-x="">section-spouse</code>".
"<code data-x="">section-spouse</code>".</p>

<p>The autocompletion mechanism must be implemented by the user agent acting as if the user had
modified the <span>control's data</span>, and must be done at a time where the element is <i
Expand Down

0 comments on commit 4557434

Please sign in to comment.