Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Another range bug bites the dust. (I hope!)

  • Loading branch information...
commit 58d339113554d72ae2996839afb323ec242f6ddb 1 parent 20dfe73
@annevk annevk authored
Showing with 50 additions and 2 deletions.
  1. +24 −0 Overview.src.html
  2. +26 −2 dom-core.html
View
24 Overview.src.html
@@ -3034,6 +3034,30 @@ <h2 class=no-num>Goals</h2>
<span title=concept-range-end-node>end node</span> to
<var title>node</var>.
+ <li><p>For each <span title=concept-range>range</span> whose
+ <span title=concept-range-start-node>start node</span> is
+ <var title>current node</var>'s
+ <span title=concept-tree-parent>parent</span> and
+ <span title=concept-range-start-offset>start offset</span> is
+ <var title>current node</var>'s
+ <span title=concept-tree-index>index</span>, set its
+ <span title=concept-range-start-node>start node</span> to
+ <var title>node</var> and its
+ <span title=concept-range-start-offset>start offset</span> to
+ <var title>length</var>.
+
+ <li><p>For each <span title=concept-range>range</span> whose
+ <span title=concept-range-end-node>end node</span> is
+ <var title>current node</var>'s
+ <span title=concept-tree-parent>parent</span> and
+ <span title=concept-range-end-offset>end offset</span> is
+ <var title>current node</var>'s
+ <span title=concept-tree-index>index</span>, set its
+ <span title=concept-range-end-node>end node</span> to
+ <var title>node</var> and its
+ <span title=concept-range-end-offset>end offset</span> to
+ <var title>length</var>.
+
<li><p>Add <var title>current node</var>'s
<code title=dom-CharacterData-length>length</code> attribute value to
<var title>length</var>.
View
28 dom-core.html
@@ -10,7 +10,7 @@
<p><a class="logo" href="//www.whatwg.org/"><img alt="WHATWG" height="100" src="//resources.whatwg.org/logo-dom.svg" width="100"></a></p>
<h1>DOM</h1>
- <h2 class="no-num no-toc" id="living-standard-—-last-updated-17-november-2012">Living Standard — Last Updated 17 November 2012</h2>
+ <h2 class="no-num no-toc" id="living-standard-—-last-updated-19-november-2012">Living Standard — Last Updated 19 November 2012</h2>
<dl>
<dt>This Version:
@@ -42,7 +42,7 @@ <h2 class="no-num no-toc" id="living-standard-—-last-updated-17-november-2012"
<p class="copyright"><a href="http://creativecommons.org/publicdomain/zero/1.0/" rel="license"><img alt="CC0" src="http://i.creativecommons.org/p/zero/1.0/80x15.png"></a>
To the extent possible under law, the editors have waived all copyright and
related or neighboring rights to this work. In addition, as of
-17 November 2012, the editors have made this specification available
+19 November 2012, the editors have made this specification available
under the
<a href="http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0" rel="license">Open Web Foundation Agreement Version 1.0</a>,
which is available at
@@ -3097,6 +3097,30 @@ <h3 id="interface-node"><span class="secno">5.4 </span>Interface <code><a href="
<a href="#concept-range-end-node" title="concept-range-end-node">end node</a> to
<var title="">node</var>.
+ <li><p>For each <a href="#concept-range" title="concept-range">range</a> whose
+ <a href="#concept-range-start-node" title="concept-range-start-node">start node</a> is
+ <var title="">current node</var>'s
+ <a href="#concept-tree-parent" title="concept-tree-parent">parent</a> and
+ <a href="#concept-range-start-offset" title="concept-range-start-offset">start offset</a> is
+ <var title="">current node</var>'s
+ <a href="#concept-tree-index" title="concept-tree-index">index</a>, set its
+ <a href="#concept-range-start-node" title="concept-range-start-node">start node</a> to
+ <var title="">node</var> and its
+ <a href="#concept-range-start-offset" title="concept-range-start-offset">start offset</a> to
+ <var title="">length</var>.
+
+ <li><p>For each <a href="#concept-range" title="concept-range">range</a> whose
+ <a href="#concept-range-end-node" title="concept-range-end-node">end node</a> is
+ <var title="">current node</var>'s
+ <a href="#concept-tree-parent" title="concept-tree-parent">parent</a> and
+ <a href="#concept-range-end-offset" title="concept-range-end-offset">end offset</a> is
+ <var title="">current node</var>'s
+ <a href="#concept-tree-index" title="concept-tree-index">index</a>, set its
+ <a href="#concept-range-end-node" title="concept-range-end-node">end node</a> to
+ <var title="">node</var> and its
+ <a href="#concept-range-end-offset" title="concept-range-end-offset">end offset</a> to
+ <var title="">length</var>.
+
<li><p>Add <var title="">current node</var>'s
<code title="dom-CharacterData-length"><a href="#dom-characterdata-length">length</a></code> attribute value to
<var title="">length</var>.
Please sign in to comment.
Something went wrong with that request. Please try again.