Skip to content

Commit

Permalink
[Bug 15444]: [Shadow DOM] Removes 6.1.1 section title.
Browse files Browse the repository at this point in the history
  • Loading branch information
hayatoito committed Mar 11, 2014
1 parent 25bd518 commit 0887618
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions spec/shadow/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -825,21 +825,17 @@ <h3>Event Retargeting Example</h3>
<h2>User Interaction</h2>

<section class="informative">
<h3>Selections</h3>
<h3>Ranges and Selections</h3>

<p>
<a>Selection</a> is not defined. Implementation should do their best to do what's best for them. Here's one possible, admittedly naive way:
<a>Selection</a> [[!EDITING]] is not defined. Implementation should do their best to do what's best for them. Here's one possible, admittedly naive way:
</p>

<section>
<h3>Ranges and Selections</h3>
<p>Since <a title="node">nodes</a> which are in the different <a title="node tree">node trees</a> never have the same <a>root</a>, there may never exist a valid <a title="range">DOM range</a> that spans multiple <a title="node tree">node trees</a>.</p>

<p>Since <a title="node">nodes</a> which are in the different <a title="node tree">node trees</a> never have the same <a>root</a>, there may never exist a valid <a title="range">DOM range</a> that spans multiple <a title="node tree">node trees</a>.</p>
<p>Accordingly, <a title="selection">selections</a> may only exist within one <a>node tree</a>, because they are defined by a single <a>range</a>. The <a>selection</a>, returned by the <a><code>window.getSelection()</code></a> method never returns a <a>selection</a> within a <a>shadow tree</a>.</p>

<p>Accordingly, <a title="selection">selections</a> [[!EDITING]] may only exist within one <a>node tree</a>, because they are defined by a single <a>range</a>. The <a>selection</a>, returned by the <a><code>window.getSelection()</code></a> method <strong>must</strong> never return a <a>selection</a> within a <a>shadow tree</a>.</p>

<p>The <code>getSelection()</code> method of the <a>shadow root</a> object <strong>must</strong> return the current <a>selection</a> in this <a>shadow tree</a>.</p>
</section>
<p>The <code>getSelection()</code> method of the <a>shadow root</a> object returns the current <a>selection</a> in this <a>shadow tree</a>.</p>
</section>

<section>
Expand Down

0 comments on commit 0887618

Please sign in to comment.