<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[190229] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/190229">190229</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2015-09-24 16:33:34 -0700 (Thu, 24 Sep 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Rewrite Range::insertNode() as per the latest DOM specification
https://bugs.webkit.org/show_bug.cgi?id=149528

Reviewed by Ryosuke Niwa.

LayoutTests/imported/w3c:

Rebaseline W3C DOM tests now that more tests are passing.

* web-platform-tests/dom/ranges/Range-insertNode-expected.txt:
* web-platform-tests/dom/ranges/Range-surroundContents-expected.txt:

Source/WebCore:

Rewrite Range::insertNode() as per the latest DOM specification:
- https://dom.spec.whatwg.org/#concept-range-insert

Our previous implementation seemed outdated as we were failing a lot of
W3C tests that Firefox is passing.

No new tests, already covered by existing tests.

* dom/ContainerNode.cpp:
(WebCore::ContainerNode::ensurePreInsertionValidity):
(WebCore::checkPreReplacementValidity):
(WebCore::ContainerNode::insertBefore):
(WebCore::ContainerNode::replaceChild):
(WebCore::ContainerNode::appendChild):
* dom/ContainerNode.h:
* dom/Range.cpp:
(WebCore::Range::insertNode):
(WebCore::Range::surroundContents):
(WebCore::Range::toString): Deleted.
(WebCore::Range::toHTML): Deleted.
(WebCore::Range::text): Deleted.
(WebCore::Range::createContextualFragment): Deleted.
(WebCore::Range::detach): Deleted.
(WebCore::Range::absoluteBoundingBox): Deleted.
* dom/Range.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsimportedw3cChangeLog">trunk/LayoutTests/imported/w3c/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsdomrangesRangeinsertNodeexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-insertNode-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsdomrangesRangesurroundContentsexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-surroundContents-expected.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoredomContainerNodecpp">trunk/Source/WebCore/dom/ContainerNode.cpp</a></li>
<li><a href="#trunkSourceWebCoredomContainerNodeh">trunk/Source/WebCore/dom/ContainerNode.h</a></li>
<li><a href="#trunkSourceWebCoredomRangecpp">trunk/Source/WebCore/dom/Range.cpp</a></li>
<li><a href="#trunkSourceWebCoredomRangeh">trunk/Source/WebCore/dom/Range.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsimportedw3cChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/ChangeLog (190228 => 190229)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/ChangeLog        2015-09-24 23:03:24 UTC (rev 190228)
+++ trunk/LayoutTests/imported/w3c/ChangeLog        2015-09-24 23:33:34 UTC (rev 190229)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2015-09-24  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        Rewrite Range::insertNode() as per the latest DOM specification
+        https://bugs.webkit.org/show_bug.cgi?id=149528
+
+        Reviewed by Ryosuke Niwa.
+
+        Rebaseline W3C DOM tests now that more tests are passing.
+
+        * web-platform-tests/dom/ranges/Range-insertNode-expected.txt:
+        * web-platform-tests/dom/ranges/Range-surroundContents-expected.txt:
+
</ins><span class="cx"> 2015-09-23  Chris Dumez  &lt;cdumez@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Unreviewed, rebaseline web-platform-tests/html/dom/interfaces.html after r190190
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsdomrangesRangeinsertNodeexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-insertNode-expected.txt (190228 => 190229)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-insertNode-expected.txt        2015-09-24 23:03:24 UTC (rev 190228)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-insertNode-expected.txt        2015-09-24 23:33:34 UTC (rev 190229)
</span><span class="lines">@@ -3,54 +3,52 @@
</span><span class="cx"> 
</span><span class="cx"> PASS 0,0: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[0] 
</span><span class="cx"> PASS 0,0: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[0] 
</span><del>-FAIL 0,1: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[0].firstChild HierarchyRequestError: DOM Exception 3
-FAIL 0,1: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[0].firstChild assert_true: First differing node: expected Text node &quot;&quot;, got Text node &quot;Äb̈c̈d̈ëf̈g̈ḧ
-&quot; [Actual and expected mismatch for range's tree root.  ] expected true got false
</del><ins>+PASS 0,1: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[0].firstChild 
+PASS 0,1: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[0].firstChild 
</ins><span class="cx"> PASS 0,2: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[1].firstChild 
</span><del>-FAIL 0,2: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[1].firstChild assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 0,2: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[1].firstChild 
</ins><span class="cx"> PASS 0,3: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignPara1 
</span><del>-FAIL 0,3: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignPara1 assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 0,3: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignPara1 
</ins><span class="cx"> PASS 0,4: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignPara1.firstChild 
</span><del>-FAIL 0,4: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignPara1.firstChild assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 0,4: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignPara1.firstChild 
</ins><span class="cx"> PASS 0,5: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedPara1 
</span><del>-FAIL 0,5: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedPara1 assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 0,5: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedPara1 
</ins><span class="cx"> PASS 0,6: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedPara1.firstChild 
</span><del>-FAIL 0,6: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedPara1.firstChild assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 0,6: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedPara1.firstChild 
</ins><span class="cx"> PASS 0,7: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node document 
</span><span class="cx"> PASS 0,7: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node document 
</span><span class="cx"> PASS 0,8: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedDiv 
</span><del>-FAIL 0,8: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedDiv assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 0,8: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedDiv 
</ins><span class="cx"> PASS 0,9: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignDoc 
</span><span class="cx"> PASS 0,9: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignDoc 
</span><span class="cx"> PASS 0,10: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignPara2 
</span><del>-FAIL 0,10: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignPara2 assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 0,10: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignPara2 
</ins><span class="cx"> PASS 0,11: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node xmlDoc 
</span><span class="cx"> PASS 0,11: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node xmlDoc 
</span><span class="cx"> PASS 0,12: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node xmlElement 
</span><del>-FAIL 0,12: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node xmlElement assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 0,12: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node xmlElement 
</ins><span class="cx"> PASS 0,13: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedTextNode 
</span><del>-FAIL 0,13: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedTextNode assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 0,13: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedTextNode 
</ins><span class="cx"> PASS 0,14: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignTextNode 
</span><del>-FAIL 0,14: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignTextNode assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 0,14: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignTextNode 
</ins><span class="cx"> PASS 0,15: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node processingInstruction 
</span><del>-FAIL 0,15: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node processingInstruction assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 0,15: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node processingInstruction 
</ins><span class="cx"> PASS 0,16: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedProcessingInstruction 
</span><del>-FAIL 0,16: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedProcessingInstruction assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 0,16: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedProcessingInstruction 
</ins><span class="cx"> PASS 0,17: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node comment 
</span><del>-FAIL 0,17: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node comment assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 0,17: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node comment 
</ins><span class="cx"> PASS 0,18: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedComment 
</span><del>-FAIL 0,18: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedComment assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 0,18: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedComment 
</ins><span class="cx"> PASS 0,19: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node docfrag 
</span><del>-FAIL 0,19: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node docfrag assert_equals: Unexpected endOffset after insertNode() expected 1 but got 0
</del><ins>+PASS 0,19: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node docfrag 
</ins><span class="cx"> PASS 0,20: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node doctype 
</span><span class="cx"> PASS 0,20: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node doctype 
</span><span class="cx"> PASS 0,21: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignDoctype 
</span><span class="cx"> PASS 0,21: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignDoctype 
</span><span class="cx"> PASS 1,0: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[0] 
</span><span class="cx"> PASS 1,0: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[0] 
</span><del>-FAIL 1,1: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[0].firstChild HierarchyRequestError: DOM Exception 3
-FAIL 1,1: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[0].firstChild assert_true: First differing node: expected Text node &quot;&quot;, got Text node &quot;Äb̈c̈d̈ëf̈g̈ḧ
-&quot; [Actual and expected mismatch for range's tree root.  ] expected true got false
</del><ins>+PASS 1,1: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[0].firstChild 
+PASS 1,1: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[0].firstChild 
</ins><span class="cx"> PASS 1,2: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[1].firstChild 
</span><span class="cx"> PASS 1,2: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[1].firstChild 
</span><span class="cx"> PASS 1,3: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node foreignPara1 
</span><span class="lines">@@ -93,9 +91,8 @@
</span><span class="cx"> PASS 1,21: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node foreignDoctype 
</span><span class="cx"> PASS 2,0: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node paras[0] 
</span><span class="cx"> PASS 2,0: resulting range position for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node paras[0] 
</span><del>-FAIL 2,1: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node paras[0].firstChild HierarchyRequestError: DOM Exception 3
-FAIL 2,1: resulting range position for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node paras[0].firstChild assert_true: First differing node: expected Text node &quot;Ä&quot;, got Text node &quot;Äb̈c̈d̈ëf̈g̈ḧ
-&quot; [Actual and expected mismatch for range's tree root.  ] expected true got false
</del><ins>+PASS 2,1: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node paras[0].firstChild 
+PASS 2,1: resulting range position for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node paras[0].firstChild 
</ins><span class="cx"> PASS 2,2: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node paras[1].firstChild 
</span><span class="cx"> PASS 2,2: resulting range position for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node paras[1].firstChild 
</span><span class="cx"> PASS 2,3: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node foreignPara1 
</span><span class="lines">@@ -138,9 +135,8 @@
</span><span class="cx"> PASS 2,21: resulting range position for range [paras[0].firstChild, 2, paras[0].firstChild, 8], node foreignDoctype 
</span><span class="cx"> PASS 3,0: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node paras[0] 
</span><span class="cx"> PASS 3,0: resulting range position for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node paras[0] 
</span><del>-FAIL 3,1: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node paras[0].firstChild HierarchyRequestError: DOM Exception 3
-FAIL 3,1: resulting range position for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node paras[0].firstChild assert_true: First differing node: expected Text node &quot;Ä&quot;, got Text node &quot;Äb̈c̈d̈ëf̈g̈ḧ
-&quot; [Actual and expected mismatch for range's tree root.  ] expected true got false
</del><ins>+PASS 3,1: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node paras[0].firstChild 
+PASS 3,1: resulting range position for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node paras[0].firstChild 
</ins><span class="cx"> PASS 3,2: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node paras[1].firstChild 
</span><span class="cx"> PASS 3,2: resulting range position for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node paras[1].firstChild 
</span><span class="cx"> PASS 3,3: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node foreignPara1 
</span><span class="lines">@@ -182,46 +178,45 @@
</span><span class="cx"> PASS 3,21: resulting DOM for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node foreignDoctype 
</span><span class="cx"> PASS 3,21: resulting range position for range [paras[0].firstChild, 2, paras[0].firstChild, 9], node foreignDoctype 
</span><span class="cx"> PASS 4,0: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[0] 
</span><del>-FAIL 4,0: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[0] assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 4,0: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[0] 
</ins><span class="cx"> PASS 4,1: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[0].firstChild 
</span><del>-FAIL 4,1: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[0].firstChild assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
-FAIL 4,2: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[1].firstChild HierarchyRequestError: DOM Exception 3
-FAIL 4,2: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[1].firstChild assert_true: First differing node: expected Text node &quot;&quot;, got Text node &quot;Ijklmnop
-&quot; [Actual and expected mismatch for range's tree root.  ] expected true got false
</del><ins>+PASS 4,1: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[0].firstChild 
+PASS 4,2: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[1].firstChild 
+PASS 4,2: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[1].firstChild 
</ins><span class="cx"> PASS 4,3: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignPara1 
</span><del>-FAIL 4,3: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignPara1 assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 4,3: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignPara1 
</ins><span class="cx"> PASS 4,4: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignPara1.firstChild 
</span><del>-FAIL 4,4: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignPara1.firstChild assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 4,4: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignPara1.firstChild 
</ins><span class="cx"> PASS 4,5: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedPara1 
</span><del>-FAIL 4,5: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedPara1 assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 4,5: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedPara1 
</ins><span class="cx"> PASS 4,6: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedPara1.firstChild 
</span><del>-FAIL 4,6: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedPara1.firstChild assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 4,6: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedPara1.firstChild 
</ins><span class="cx"> PASS 4,7: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node document 
</span><span class="cx"> PASS 4,7: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node document 
</span><span class="cx"> PASS 4,8: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedDiv 
</span><del>-FAIL 4,8: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedDiv assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 4,8: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedDiv 
</ins><span class="cx"> PASS 4,9: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignDoc 
</span><span class="cx"> PASS 4,9: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignDoc 
</span><span class="cx"> PASS 4,10: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignPara2 
</span><del>-FAIL 4,10: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignPara2 assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 4,10: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignPara2 
</ins><span class="cx"> PASS 4,11: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node xmlDoc 
</span><span class="cx"> PASS 4,11: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node xmlDoc 
</span><span class="cx"> PASS 4,12: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node xmlElement 
</span><del>-FAIL 4,12: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node xmlElement assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 4,12: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node xmlElement 
</ins><span class="cx"> PASS 4,13: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedTextNode 
</span><del>-FAIL 4,13: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedTextNode assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 4,13: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedTextNode 
</ins><span class="cx"> PASS 4,14: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignTextNode 
</span><del>-FAIL 4,14: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignTextNode assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 4,14: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignTextNode 
</ins><span class="cx"> PASS 4,15: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node processingInstruction 
</span><del>-FAIL 4,15: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node processingInstruction assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 4,15: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node processingInstruction 
</ins><span class="cx"> PASS 4,16: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedProcessingInstruction 
</span><del>-FAIL 4,16: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedProcessingInstruction assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 4,16: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedProcessingInstruction 
</ins><span class="cx"> PASS 4,17: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node comment 
</span><del>-FAIL 4,17: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node comment assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 4,17: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node comment 
</ins><span class="cx"> PASS 4,18: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedComment 
</span><del>-FAIL 4,18: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedComment assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 4,18: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedComment 
</ins><span class="cx"> PASS 4,19: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node docfrag 
</span><del>-FAIL 4,19: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node docfrag assert_equals: Unexpected endOffset after insertNode() expected 1 but got 0
</del><ins>+PASS 4,19: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node docfrag 
</ins><span class="cx"> PASS 4,20: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node doctype 
</span><span class="cx"> PASS 4,20: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node doctype 
</span><span class="cx"> PASS 4,21: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignDoctype 
</span><span class="lines">@@ -230,9 +225,8 @@
</span><span class="cx"> PASS 5,0: resulting range position for range [paras[1].firstChild, 2, paras[1].firstChild, 9], node paras[0] 
</span><span class="cx"> PASS 5,1: resulting DOM for range [paras[1].firstChild, 2, paras[1].firstChild, 9], node paras[0].firstChild 
</span><span class="cx"> PASS 5,1: resulting range position for range [paras[1].firstChild, 2, paras[1].firstChild, 9], node paras[0].firstChild 
</span><del>-FAIL 5,2: resulting DOM for range [paras[1].firstChild, 2, paras[1].firstChild, 9], node paras[1].firstChild HierarchyRequestError: DOM Exception 3
-FAIL 5,2: resulting range position for range [paras[1].firstChild, 2, paras[1].firstChild, 9], node paras[1].firstChild assert_true: First differing node: expected Text node &quot;Ij&quot;, got Text node &quot;Ijklmnop
-&quot; [Actual and expected mismatch for range's tree root.  ] expected true got false
</del><ins>+PASS 5,2: resulting DOM for range [paras[1].firstChild, 2, paras[1].firstChild, 9], node paras[1].firstChild 
+PASS 5,2: resulting range position for range [paras[1].firstChild, 2, paras[1].firstChild, 9], node paras[1].firstChild 
</ins><span class="cx"> PASS 5,3: resulting DOM for range [paras[1].firstChild, 2, paras[1].firstChild, 9], node foreignPara1 
</span><span class="cx"> PASS 5,3: resulting range position for range [paras[1].firstChild, 2, paras[1].firstChild, 9], node foreignPara1 
</span><span class="cx"> PASS 5,4: resulting DOM for range [paras[1].firstChild, 2, paras[1].firstChild, 9], node foreignPara1.firstChild 
</span><span class="lines">@@ -272,19 +266,19 @@
</span><span class="cx"> PASS 5,21: resulting DOM for range [paras[1].firstChild, 2, paras[1].firstChild, 9], node foreignDoctype 
</span><span class="cx"> PASS 5,21: resulting range position for range [paras[1].firstChild, 2, paras[1].firstChild, 9], node foreignDoctype 
</span><span class="cx"> PASS 6,0: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node paras[0] 
</span><del>-FAIL 6,0: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node paras[0] assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 6,0: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node paras[0] 
</ins><span class="cx"> PASS 6,1: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node paras[0].firstChild 
</span><del>-FAIL 6,1: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node paras[0].firstChild assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 6,1: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node paras[0].firstChild 
</ins><span class="cx"> PASS 6,2: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node paras[1].firstChild 
</span><del>-FAIL 6,2: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node paras[1].firstChild assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 6,2: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node paras[1].firstChild 
</ins><span class="cx"> PASS 6,3: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignPara1 
</span><del>-FAIL 6,3: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignPara1 assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 6,3: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignPara1 
</ins><span class="cx"> PASS 6,4: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignPara1.firstChild 
</span><del>-FAIL 6,4: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignPara1.firstChild assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 6,4: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignPara1.firstChild 
</ins><span class="cx"> PASS 6,5: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedPara1 
</span><span class="cx"> PASS 6,5: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedPara1 
</span><del>-FAIL 6,6: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedPara1.firstChild HierarchyRequestError: DOM Exception 3
-FAIL 6,6: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedPara1.firstChild assert_true: First differing node: expected Text node &quot;&quot;, got Text node &quot;Opqrstuv&quot; [Actual and expected mismatch for range's tree root.  ] expected true got false
</del><ins>+PASS 6,6: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedPara1.firstChild 
+PASS 6,6: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedPara1.firstChild 
</ins><span class="cx"> PASS 6,7: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node document 
</span><span class="cx"> PASS 6,7: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node document 
</span><span class="cx"> PASS 6,8: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedDiv 
</span><span class="lines">@@ -292,25 +286,25 @@
</span><span class="cx"> PASS 6,9: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignDoc 
</span><span class="cx"> PASS 6,9: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignDoc 
</span><span class="cx"> PASS 6,10: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignPara2 
</span><del>-FAIL 6,10: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignPara2 assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 6,10: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignPara2 
</ins><span class="cx"> PASS 6,11: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node xmlDoc 
</span><span class="cx"> PASS 6,11: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node xmlDoc 
</span><span class="cx"> PASS 6,12: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node xmlElement 
</span><del>-FAIL 6,12: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node xmlElement assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 6,12: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node xmlElement 
</ins><span class="cx"> PASS 6,13: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedTextNode 
</span><del>-FAIL 6,13: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedTextNode assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 6,13: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedTextNode 
</ins><span class="cx"> PASS 6,14: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignTextNode 
</span><del>-FAIL 6,14: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignTextNode assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 6,14: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignTextNode 
</ins><span class="cx"> PASS 6,15: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node processingInstruction 
</span><del>-FAIL 6,15: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node processingInstruction assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 6,15: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node processingInstruction 
</ins><span class="cx"> PASS 6,16: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedProcessingInstruction 
</span><del>-FAIL 6,16: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedProcessingInstruction assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 6,16: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedProcessingInstruction 
</ins><span class="cx"> PASS 6,17: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node comment 
</span><del>-FAIL 6,17: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node comment assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 6,17: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node comment 
</ins><span class="cx"> PASS 6,18: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedComment 
</span><del>-FAIL 6,18: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedComment assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 6,18: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedComment 
</ins><span class="cx"> PASS 6,19: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node docfrag 
</span><del>-FAIL 6,19: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node docfrag assert_equals: Unexpected endOffset after insertNode() expected 1 but got 0
</del><ins>+PASS 6,19: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node docfrag 
</ins><span class="cx"> PASS 6,20: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node doctype 
</span><span class="cx"> PASS 6,20: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node doctype 
</span><span class="cx"> PASS 6,21: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignDoctype 
</span><span class="lines">@@ -327,8 +321,8 @@
</span><span class="cx"> PASS 7,4: resulting range position for range [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], node foreignPara1.firstChild 
</span><span class="cx"> PASS 7,5: resulting DOM for range [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], node detachedPara1 
</span><span class="cx"> PASS 7,5: resulting range position for range [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], node detachedPara1 
</span><del>-FAIL 7,6: resulting DOM for range [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], node detachedPara1.firstChild HierarchyRequestError: DOM Exception 3
-FAIL 7,6: resulting range position for range [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], node detachedPara1.firstChild assert_true: First differing node: expected Text node &quot;Op&quot;, got Text node &quot;Opqrstuv&quot; [Actual and expected mismatch for range's tree root.  ] expected true got false
</del><ins>+PASS 7,6: resulting DOM for range [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], node detachedPara1.firstChild 
+PASS 7,6: resulting range position for range [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], node detachedPara1.firstChild 
</ins><span class="cx"> PASS 7,7: resulting DOM for range [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], node document 
</span><span class="cx"> PASS 7,7: resulting range position for range [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], node document 
</span><span class="cx"> PASS 7,8: resulting DOM for range [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], node detachedDiv 
</span><span class="lines">@@ -360,45 +354,45 @@
</span><span class="cx"> PASS 7,21: resulting DOM for range [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], node foreignDoctype 
</span><span class="cx"> PASS 7,21: resulting range position for range [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], node foreignDoctype 
</span><span class="cx"> PASS 8,0: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node paras[0] 
</span><del>-FAIL 8,0: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node paras[0] assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 8,0: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node paras[0] 
</ins><span class="cx"> PASS 8,1: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node paras[0].firstChild 
</span><del>-FAIL 8,1: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node paras[0].firstChild assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 8,1: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node paras[0].firstChild 
</ins><span class="cx"> PASS 8,2: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node paras[1].firstChild 
</span><del>-FAIL 8,2: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node paras[1].firstChild assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 8,2: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node paras[1].firstChild 
</ins><span class="cx"> PASS 8,3: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara1 
</span><span class="cx"> PASS 8,3: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara1 
</span><del>-FAIL 8,4: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara1.firstChild HierarchyRequestError: DOM Exception 3
-FAIL 8,4: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara1.firstChild assert_true: First differing node: expected Text node &quot;&quot;, got Text node &quot;Efghijkl&quot; [Actual and expected mismatch for range's tree root.  ] expected true got false
</del><ins>+PASS 8,4: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara1.firstChild 
+PASS 8,4: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara1.firstChild 
</ins><span class="cx"> PASS 8,5: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedPara1 
</span><del>-FAIL 8,5: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedPara1 assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 8,5: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedPara1 
</ins><span class="cx"> PASS 8,6: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedPara1.firstChild 
</span><del>-FAIL 8,6: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedPara1.firstChild assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 8,6: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedPara1.firstChild 
</ins><span class="cx"> PASS 8,7: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node document 
</span><span class="cx"> PASS 8,7: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node document 
</span><span class="cx"> PASS 8,8: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedDiv 
</span><del>-FAIL 8,8: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedDiv assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 8,8: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedDiv 
</ins><span class="cx"> PASS 8,9: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignDoc 
</span><span class="cx"> PASS 8,9: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignDoc 
</span><span class="cx"> PASS 8,10: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara2 
</span><del>-FAIL 8,10: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara2 assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 8,10: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara2 
</ins><span class="cx"> PASS 8,11: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node xmlDoc 
</span><span class="cx"> PASS 8,11: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node xmlDoc 
</span><span class="cx"> PASS 8,12: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node xmlElement 
</span><del>-FAIL 8,12: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node xmlElement assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 8,12: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node xmlElement 
</ins><span class="cx"> PASS 8,13: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedTextNode 
</span><del>-FAIL 8,13: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedTextNode assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 8,13: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedTextNode 
</ins><span class="cx"> PASS 8,14: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignTextNode 
</span><del>-FAIL 8,14: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignTextNode assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 8,14: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignTextNode 
</ins><span class="cx"> PASS 8,15: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node processingInstruction 
</span><del>-FAIL 8,15: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node processingInstruction assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 8,15: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node processingInstruction 
</ins><span class="cx"> PASS 8,16: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedProcessingInstruction 
</span><del>-FAIL 8,16: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedProcessingInstruction assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 8,16: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedProcessingInstruction 
</ins><span class="cx"> PASS 8,17: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node comment 
</span><del>-FAIL 8,17: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node comment assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 8,17: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node comment 
</ins><span class="cx"> PASS 8,18: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedComment 
</span><del>-FAIL 8,18: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedComment assert_equals: Unexpected endOffset after insertNode() expected 2 but got 0
</del><ins>+PASS 8,18: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedComment 
</ins><span class="cx"> PASS 8,19: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node docfrag 
</span><del>-FAIL 8,19: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node docfrag assert_equals: Unexpected endOffset after insertNode() expected 1 but got 0
</del><ins>+PASS 8,19: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node docfrag 
</ins><span class="cx"> PASS 8,20: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node doctype 
</span><span class="cx"> PASS 8,20: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node doctype 
</span><span class="cx"> PASS 8,21: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignDoctype 
</span><span class="lines">@@ -411,8 +405,8 @@
</span><span class="cx"> PASS 9,2: resulting range position for range [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], node paras[1].firstChild 
</span><span class="cx"> PASS 9,3: resulting DOM for range [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], node foreignPara1 
</span><span class="cx"> PASS 9,3: resulting range position for range [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], node foreignPara1 
</span><del>-FAIL 9,4: resulting DOM for range [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], node foreignPara1.firstChild HierarchyRequestError: DOM Exception 3
-FAIL 9,4: resulting range position for range [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], node foreignPara1.firstChild assert_true: First differing node: expected Text node &quot;Ef&quot;, got Text node &quot;Efghijkl&quot; [Actual and expected mismatch for range's tree root.  ] expected true got false
</del><ins>+PASS 9,4: resulting DOM for range [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], node foreignPara1.firstChild 
+PASS 9,4: resulting range position for range [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], node foreignPara1.firstChild 
</ins><span class="cx"> PASS 9,5: resulting DOM for range [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], node detachedPara1 
</span><span class="cx"> PASS 9,5: resulting range position for range [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], node detachedPara1 
</span><span class="cx"> PASS 9,6: resulting DOM for range [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], node detachedPara1.firstChild 
</span><span class="lines">@@ -801,9 +795,8 @@
</span><span class="cx"> PASS 17,21: resulting range position for range [detachedPara1, 0, detachedPara1, 1], node foreignDoctype 
</span><span class="cx"> PASS 18,0: resulting DOM for range [paras[0].firstChild, 0, paras[1].firstChild, 0], node paras[0] 
</span><span class="cx"> PASS 18,0: resulting range position for range [paras[0].firstChild, 0, paras[1].firstChild, 0], node paras[0] 
</span><del>-FAIL 18,1: resulting DOM for range [paras[0].firstChild, 0, paras[1].firstChild, 0], node paras[0].firstChild HierarchyRequestError: DOM Exception 3
-FAIL 18,1: resulting range position for range [paras[0].firstChild, 0, paras[1].firstChild, 0], node paras[0].firstChild assert_true: First differing node: expected Text node &quot;&quot;, got Text node &quot;Äb̈c̈d̈ëf̈g̈ḧ
-&quot; [Actual and expected mismatch for range's tree root.  ] expected true got false
</del><ins>+PASS 18,1: resulting DOM for range [paras[0].firstChild, 0, paras[1].firstChild, 0], node paras[0].firstChild 
+PASS 18,1: resulting range position for range [paras[0].firstChild, 0, paras[1].firstChild, 0], node paras[0].firstChild 
</ins><span class="cx"> PASS 18,2: resulting DOM for range [paras[0].firstChild, 0, paras[1].firstChild, 0], node paras[1].firstChild 
</span><span class="cx"> PASS 18,2: resulting range position for range [paras[0].firstChild, 0, paras[1].firstChild, 0], node paras[1].firstChild 
</span><span class="cx"> PASS 18,3: resulting DOM for range [paras[0].firstChild, 0, paras[1].firstChild, 0], node foreignPara1 
</span><span class="lines">@@ -846,9 +839,8 @@
</span><span class="cx"> PASS 18,21: resulting range position for range [paras[0].firstChild, 0, paras[1].firstChild, 0], node foreignDoctype 
</span><span class="cx"> PASS 19,0: resulting DOM for range [paras[0].firstChild, 0, paras[1].firstChild, 8], node paras[0] 
</span><span class="cx"> PASS 19,0: resulting range position for range [paras[0].firstChild, 0, paras[1].firstChild, 8], node paras[0] 
</span><del>-FAIL 19,1: resulting DOM for range [paras[0].firstChild, 0, paras[1].firstChild, 8], node paras[0].firstChild HierarchyRequestError: DOM Exception 3
-FAIL 19,1: resulting range position for range [paras[0].firstChild, 0, paras[1].firstChild, 8], node paras[0].firstChild assert_true: First differing node: expected Text node &quot;&quot;, got Text node &quot;Äb̈c̈d̈ëf̈g̈ḧ
-&quot; [Actual and expected mismatch for range's tree root.  ] expected true got false
</del><ins>+PASS 19,1: resulting DOM for range [paras[0].firstChild, 0, paras[1].firstChild, 8], node paras[0].firstChild 
+PASS 19,1: resulting range position for range [paras[0].firstChild, 0, paras[1].firstChild, 8], node paras[0].firstChild 
</ins><span class="cx"> PASS 19,2: resulting DOM for range [paras[0].firstChild, 0, paras[1].firstChild, 8], node paras[1].firstChild 
</span><span class="cx"> PASS 19,2: resulting range position for range [paras[0].firstChild, 0, paras[1].firstChild, 8], node paras[1].firstChild 
</span><span class="cx"> PASS 19,3: resulting DOM for range [paras[0].firstChild, 0, paras[1].firstChild, 8], node foreignPara1 
</span><span class="lines">@@ -891,9 +883,8 @@
</span><span class="cx"> PASS 19,21: resulting range position for range [paras[0].firstChild, 0, paras[1].firstChild, 8], node foreignDoctype 
</span><span class="cx"> PASS 20,0: resulting DOM for range [paras[0].firstChild, 3, paras[3], 1], node paras[0] 
</span><span class="cx"> PASS 20,0: resulting range position for range [paras[0].firstChild, 3, paras[3], 1], node paras[0] 
</span><del>-FAIL 20,1: resulting DOM for range [paras[0].firstChild, 3, paras[3], 1], node paras[0].firstChild HierarchyRequestError: DOM Exception 3
-FAIL 20,1: resulting range position for range [paras[0].firstChild, 3, paras[3], 1], node paras[0].firstChild assert_true: First differing node: expected Text node &quot;Äb&quot;, got Text node &quot;Äb̈c̈d̈ëf̈g̈ḧ
-&quot; [Actual and expected mismatch for range's tree root.  ] expected true got false
</del><ins>+PASS 20,1: resulting DOM for range [paras[0].firstChild, 3, paras[3], 1], node paras[0].firstChild 
+PASS 20,1: resulting range position for range [paras[0].firstChild, 3, paras[3], 1], node paras[0].firstChild 
</ins><span class="cx"> PASS 20,2: resulting DOM for range [paras[0].firstChild, 3, paras[3], 1], node paras[1].firstChild 
</span><span class="cx"> PASS 20,2: resulting range position for range [paras[0].firstChild, 3, paras[3], 1], node paras[1].firstChild 
</span><span class="cx"> PASS 20,3: resulting DOM for range [paras[0].firstChild, 3, paras[3], 1], node foreignPara1 
</span><span class="lines">@@ -937,7 +928,7 @@
</span><span class="cx"> PASS 21,0: resulting DOM for range [paras[0], 0, paras[0].firstChild, 7], node paras[0] 
</span><span class="cx"> PASS 21,0: resulting range position for range [paras[0], 0, paras[0].firstChild, 7], node paras[0] 
</span><span class="cx"> PASS 21,1: resulting DOM for range [paras[0], 0, paras[0].firstChild, 7], node paras[0].firstChild 
</span><del>-FAIL 21,1: resulting range position for range [paras[0], 0, paras[0].firstChild, 7], node paras[0].firstChild assert_equals: Unexpected endOffset after insertNode() expected 1 but got 7
</del><ins>+PASS 21,1: resulting range position for range [paras[0], 0, paras[0].firstChild, 7], node paras[0].firstChild 
</ins><span class="cx"> PASS 21,2: resulting DOM for range [paras[0], 0, paras[0].firstChild, 7], node paras[1].firstChild 
</span><span class="cx"> PASS 21,2: resulting range position for range [paras[0], 0, paras[0].firstChild, 7], node paras[1].firstChild 
</span><span class="cx"> PASS 21,3: resulting DOM for range [paras[0], 0, paras[0].firstChild, 7], node foreignPara1 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsdomrangesRangesurroundContentsexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-surroundContents-expected.txt (190228 => 190229)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-surroundContents-expected.txt        2015-09-24 23:03:24 UTC (rev 190228)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-surroundContents-expected.txt        2015-09-24 23:33:34 UTC (rev 190229)
</span><span class="lines">@@ -12,15 +12,15 @@
</span><span class="cx"> FAIL 0,1: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[0].firstChild assert_true: First differing node: expected Text node &quot;&quot;, got Text node &quot;Äb̈c̈d̈ëf̈g̈ḧ
</span><span class="cx"> &quot; [Actual and expected mismatch for range's tree root.  ] expected true got false
</span><span class="cx"> PASS 0,2: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[1].firstChild 
</span><del>-FAIL 0,2: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[1].firstChild assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 0,2: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node paras[1].firstChild 
</ins><span class="cx"> PASS 0,3: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignPara1 
</span><span class="cx"> PASS 0,3: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignPara1 
</span><span class="cx"> PASS 0,4: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignPara1.firstChild 
</span><del>-FAIL 0,4: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignPara1.firstChild assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 0,4: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignPara1.firstChild 
</ins><span class="cx"> PASS 0,5: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedPara1 
</span><span class="cx"> PASS 0,5: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedPara1 
</span><span class="cx"> PASS 0,6: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedPara1.firstChild 
</span><del>-FAIL 0,6: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedPara1.firstChild assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 0,6: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedPara1.firstChild 
</ins><span class="cx"> PASS 0,7: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node document 
</span><span class="cx"> PASS 0,7: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node document 
</span><span class="cx"> PASS 0,8: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedDiv 
</span><span class="lines">@@ -34,17 +34,17 @@
</span><span class="cx"> PASS 0,12: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node xmlElement 
</span><span class="cx"> PASS 0,12: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node xmlElement 
</span><span class="cx"> PASS 0,13: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedTextNode 
</span><del>-FAIL 0,13: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedTextNode assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 0,13: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedTextNode 
</ins><span class="cx"> PASS 0,14: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignTextNode 
</span><del>-FAIL 0,14: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignTextNode assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 0,14: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node foreignTextNode 
</ins><span class="cx"> PASS 0,15: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node processingInstruction 
</span><del>-FAIL 0,15: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node processingInstruction assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 0,15: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node processingInstruction 
</ins><span class="cx"> PASS 0,16: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedProcessingInstruction 
</span><del>-FAIL 0,16: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedProcessingInstruction assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 0,16: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedProcessingInstruction 
</ins><span class="cx"> PASS 0,17: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node comment 
</span><del>-FAIL 0,17: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node comment assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 0,17: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node comment 
</ins><span class="cx"> PASS 0,18: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedComment 
</span><del>-FAIL 0,18: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedComment assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 0,18: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node detachedComment 
</ins><span class="cx"> PASS 0,19: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node docfrag 
</span><span class="cx"> PASS 0,19: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node docfrag 
</span><span class="cx"> PASS 0,20: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 0], node doctype 
</span><span class="lines">@@ -62,15 +62,15 @@
</span><span class="cx"> FAIL 1,1: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[0].firstChild assert_true: First differing node: expected Text node &quot;&quot;, got Text node &quot;Äb̈c̈d̈ëf̈g̈ḧ
</span><span class="cx"> &quot; [Actual and expected mismatch for range's tree root.  ] expected true got false
</span><span class="cx"> PASS 1,2: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[1].firstChild 
</span><del>-FAIL 1,2: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[1].firstChild assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 1,2: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node paras[1].firstChild 
</ins><span class="cx"> PASS 1,3: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node foreignPara1 
</span><span class="cx"> PASS 1,3: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node foreignPara1 
</span><span class="cx"> PASS 1,4: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node foreignPara1.firstChild 
</span><del>-FAIL 1,4: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node foreignPara1.firstChild assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 1,4: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node foreignPara1.firstChild 
</ins><span class="cx"> PASS 1,5: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node detachedPara1 
</span><span class="cx"> PASS 1,5: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node detachedPara1 
</span><span class="cx"> PASS 1,6: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node detachedPara1.firstChild 
</span><del>-FAIL 1,6: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node detachedPara1.firstChild assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 1,6: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node detachedPara1.firstChild 
</ins><span class="cx"> PASS 1,7: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node document 
</span><span class="cx"> PASS 1,7: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node document 
</span><span class="cx"> PASS 1,8: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node detachedDiv 
</span><span class="lines">@@ -84,17 +84,17 @@
</span><span class="cx"> PASS 1,12: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node xmlElement 
</span><span class="cx"> PASS 1,12: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node xmlElement 
</span><span class="cx"> PASS 1,13: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node detachedTextNode 
</span><del>-FAIL 1,13: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node detachedTextNode assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 1,13: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node detachedTextNode 
</ins><span class="cx"> PASS 1,14: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node foreignTextNode 
</span><del>-FAIL 1,14: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node foreignTextNode assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 1,14: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node foreignTextNode 
</ins><span class="cx"> PASS 1,15: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node processingInstruction 
</span><del>-FAIL 1,15: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node processingInstruction assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 1,15: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node processingInstruction 
</ins><span class="cx"> PASS 1,16: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node detachedProcessingInstruction 
</span><del>-FAIL 1,16: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node detachedProcessingInstruction assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 1,16: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node detachedProcessingInstruction 
</ins><span class="cx"> PASS 1,17: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node comment 
</span><del>-FAIL 1,17: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node comment assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 1,17: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node comment 
</ins><span class="cx"> PASS 1,18: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node detachedComment 
</span><del>-FAIL 1,18: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node detachedComment assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 1,18: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node detachedComment 
</ins><span class="cx"> PASS 1,19: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node docfrag 
</span><span class="cx"> PASS 1,19: resulting range position for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node docfrag 
</span><span class="cx"> PASS 1,20: resulting DOM for range [paras[0].firstChild, 0, paras[0].firstChild, 1], node doctype 
</span><span class="lines">@@ -204,7 +204,7 @@
</span><span class="cx"> PASS 4,0: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[0] 
</span><span class="cx"> PASS 4,0: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[0] 
</span><span class="cx"> PASS 4,1: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[0].firstChild 
</span><del>-FAIL 4,1: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[0].firstChild assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 4,1: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[0].firstChild 
</ins><span class="cx"> FAIL 4,2: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[1].firstChild assert_true: First differing node: expected Text node &quot;&quot;, got Text node &quot;Ijklmnop
</span><span class="cx"> &quot; [Actual and expected mismatch for range's tree root.  ] expected true got false
</span><span class="cx"> FAIL 4,2: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node paras[1].firstChild assert_true: First differing node: expected Text node &quot;&quot;, got Text node &quot;Ijklmnop
</span><span class="lines">@@ -212,11 +212,11 @@
</span><span class="cx"> PASS 4,3: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignPara1 
</span><span class="cx"> PASS 4,3: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignPara1 
</span><span class="cx"> PASS 4,4: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignPara1.firstChild 
</span><del>-FAIL 4,4: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignPara1.firstChild assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 4,4: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignPara1.firstChild 
</ins><span class="cx"> PASS 4,5: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedPara1 
</span><span class="cx"> PASS 4,5: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedPara1 
</span><span class="cx"> PASS 4,6: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedPara1.firstChild 
</span><del>-FAIL 4,6: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedPara1.firstChild assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 4,6: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedPara1.firstChild 
</ins><span class="cx"> PASS 4,7: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node document 
</span><span class="cx"> PASS 4,7: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node document 
</span><span class="cx"> PASS 4,8: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedDiv 
</span><span class="lines">@@ -230,17 +230,17 @@
</span><span class="cx"> PASS 4,12: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node xmlElement 
</span><span class="cx"> PASS 4,12: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node xmlElement 
</span><span class="cx"> PASS 4,13: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedTextNode 
</span><del>-FAIL 4,13: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedTextNode assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 4,13: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedTextNode 
</ins><span class="cx"> PASS 4,14: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignTextNode 
</span><del>-FAIL 4,14: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignTextNode assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 4,14: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node foreignTextNode 
</ins><span class="cx"> PASS 4,15: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node processingInstruction 
</span><del>-FAIL 4,15: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node processingInstruction assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 4,15: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node processingInstruction 
</ins><span class="cx"> PASS 4,16: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedProcessingInstruction 
</span><del>-FAIL 4,16: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedProcessingInstruction assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 4,16: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedProcessingInstruction 
</ins><span class="cx"> PASS 4,17: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node comment 
</span><del>-FAIL 4,17: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node comment assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 4,17: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node comment 
</ins><span class="cx"> PASS 4,18: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedComment 
</span><del>-FAIL 4,18: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedComment assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 4,18: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node detachedComment 
</ins><span class="cx"> PASS 4,19: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node docfrag 
</span><span class="cx"> PASS 4,19: resulting range position for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node docfrag 
</span><span class="cx"> PASS 4,20: resulting DOM for range [paras[1].firstChild, 0, paras[1].firstChild, 0], node doctype 
</span><span class="lines">@@ -296,13 +296,13 @@
</span><span class="cx"> PASS 6,0: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node paras[0] 
</span><span class="cx"> PASS 6,0: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node paras[0] 
</span><span class="cx"> PASS 6,1: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node paras[0].firstChild 
</span><del>-FAIL 6,1: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node paras[0].firstChild assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 6,1: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node paras[0].firstChild 
</ins><span class="cx"> PASS 6,2: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node paras[1].firstChild 
</span><del>-FAIL 6,2: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node paras[1].firstChild assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 6,2: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node paras[1].firstChild 
</ins><span class="cx"> PASS 6,3: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignPara1 
</span><span class="cx"> PASS 6,3: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignPara1 
</span><span class="cx"> PASS 6,4: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignPara1.firstChild 
</span><del>-FAIL 6,4: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignPara1.firstChild assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 6,4: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignPara1.firstChild 
</ins><span class="cx"> FAIL 6,5: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedPara1 assert_true: First differing node: expected Element node &lt;p&gt;Wxyzabcd&lt;/p&gt;, got Text node &quot;Opqrstuv&quot; [Actual and expected mismatch for range's tree root.  ] expected true got false
</span><span class="cx"> FAIL 6,5: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedPara1 assert_true: First differing node: expected Element node &lt;p&gt;Wxyzabcd&lt;/p&gt;, got Text node &quot;Opqrstuv&quot; [Actual and expected mismatch for range's tree root.  ] expected true got false
</span><span class="cx"> FAIL 6,6: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedPara1.firstChild assert_true: First differing node: expected Text node &quot;&quot;, got Text node &quot;Opqrstuv&quot; [Actual and expected mismatch for range's tree root.  ] expected true got false
</span><span class="lines">@@ -320,17 +320,17 @@
</span><span class="cx"> PASS 6,12: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node xmlElement 
</span><span class="cx"> PASS 6,12: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node xmlElement 
</span><span class="cx"> PASS 6,13: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedTextNode 
</span><del>-FAIL 6,13: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedTextNode assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 6,13: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedTextNode 
</ins><span class="cx"> PASS 6,14: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignTextNode 
</span><del>-FAIL 6,14: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignTextNode assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 6,14: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node foreignTextNode 
</ins><span class="cx"> PASS 6,15: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node processingInstruction 
</span><del>-FAIL 6,15: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node processingInstruction assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 6,15: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node processingInstruction 
</ins><span class="cx"> PASS 6,16: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedProcessingInstruction 
</span><del>-FAIL 6,16: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedProcessingInstruction assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 6,16: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedProcessingInstruction 
</ins><span class="cx"> PASS 6,17: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node comment 
</span><del>-FAIL 6,17: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node comment assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 6,17: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node comment 
</ins><span class="cx"> PASS 6,18: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedComment 
</span><del>-FAIL 6,18: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedComment assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 6,18: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node detachedComment 
</ins><span class="cx"> PASS 6,19: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node docfrag 
</span><span class="cx"> PASS 6,19: resulting range position for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node docfrag 
</span><span class="cx"> PASS 6,20: resulting DOM for range [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], node doctype 
</span><span class="lines">@@ -384,9 +384,9 @@
</span><span class="cx"> PASS 8,0: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node paras[0] 
</span><span class="cx"> PASS 8,0: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node paras[0] 
</span><span class="cx"> PASS 8,1: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node paras[0].firstChild 
</span><del>-FAIL 8,1: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node paras[0].firstChild assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 8,1: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node paras[0].firstChild 
</ins><span class="cx"> PASS 8,2: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node paras[1].firstChild 
</span><del>-FAIL 8,2: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node paras[1].firstChild assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 8,2: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node paras[1].firstChild 
</ins><span class="cx"> FAIL 8,3: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara1 assert_true: First differing node: expected Element node &lt;p&gt;Mnopqrst&lt;/p&gt;, got Text node &quot;Efghijkl&quot; [Actual and expected mismatch for range's tree root.  ] expected true got false
</span><span class="cx"> FAIL 8,3: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara1 assert_true: First differing node: expected Element node &lt;p&gt;Mnopqrst&lt;/p&gt;, got Text node &quot;Efghijkl&quot; [Actual and expected mismatch for range's tree root.  ] expected true got false
</span><span class="cx"> FAIL 8,4: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignPara1.firstChild assert_true: First differing node: expected Text node &quot;&quot;, got Text node &quot;Efghijkl&quot; [Actual and expected mismatch for range's tree root.  ] expected true got false
</span><span class="lines">@@ -394,7 +394,7 @@
</span><span class="cx"> PASS 8,5: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedPara1 
</span><span class="cx"> PASS 8,5: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedPara1 
</span><span class="cx"> PASS 8,6: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedPara1.firstChild 
</span><del>-FAIL 8,6: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedPara1.firstChild assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 8,6: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedPara1.firstChild 
</ins><span class="cx"> PASS 8,7: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node document 
</span><span class="cx"> PASS 8,7: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node document 
</span><span class="cx"> PASS 8,8: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedDiv 
</span><span class="lines">@@ -408,17 +408,17 @@
</span><span class="cx"> PASS 8,12: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node xmlElement 
</span><span class="cx"> PASS 8,12: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node xmlElement 
</span><span class="cx"> PASS 8,13: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedTextNode 
</span><del>-FAIL 8,13: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedTextNode assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 8,13: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedTextNode 
</ins><span class="cx"> PASS 8,14: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignTextNode 
</span><del>-FAIL 8,14: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignTextNode assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 8,14: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node foreignTextNode 
</ins><span class="cx"> PASS 8,15: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node processingInstruction 
</span><del>-FAIL 8,15: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node processingInstruction assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 8,15: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node processingInstruction 
</ins><span class="cx"> PASS 8,16: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedProcessingInstruction 
</span><del>-FAIL 8,16: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedProcessingInstruction assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 8,16: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedProcessingInstruction 
</ins><span class="cx"> PASS 8,17: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node comment 
</span><del>-FAIL 8,17: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node comment assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 8,17: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node comment 
</ins><span class="cx"> PASS 8,18: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedComment 
</span><del>-FAIL 8,18: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedComment assert_equals: Unexpected endOffset after surroundContents() expected 2 but got 0
</del><ins>+PASS 8,18: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node detachedComment 
</ins><span class="cx"> PASS 8,19: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node docfrag 
</span><span class="cx"> PASS 8,19: resulting range position for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node docfrag 
</span><span class="cx"> PASS 8,20: resulting DOM for range [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], node doctype 
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (190228 => 190229)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-09-24 23:03:24 UTC (rev 190228)
+++ trunk/Source/WebCore/ChangeLog        2015-09-24 23:33:34 UTC (rev 190229)
</span><span class="lines">@@ -1,3 +1,36 @@
</span><ins>+2015-09-24  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        Rewrite Range::insertNode() as per the latest DOM specification
+        https://bugs.webkit.org/show_bug.cgi?id=149528
+
+        Reviewed by Ryosuke Niwa.
+
+        Rewrite Range::insertNode() as per the latest DOM specification:
+        - https://dom.spec.whatwg.org/#concept-range-insert
+
+        Our previous implementation seemed outdated as we were failing a lot of
+        W3C tests that Firefox is passing.
+
+        No new tests, already covered by existing tests.
+
+        * dom/ContainerNode.cpp:
+        (WebCore::ContainerNode::ensurePreInsertionValidity):
+        (WebCore::checkPreReplacementValidity):
+        (WebCore::ContainerNode::insertBefore):
+        (WebCore::ContainerNode::replaceChild):
+        (WebCore::ContainerNode::appendChild):
+        * dom/ContainerNode.h:
+        * dom/Range.cpp:
+        (WebCore::Range::insertNode):
+        (WebCore::Range::surroundContents):
+        (WebCore::Range::toString): Deleted.
+        (WebCore::Range::toHTML): Deleted.
+        (WebCore::Range::text): Deleted.
+        (WebCore::Range::createContextualFragment): Deleted.
+        (WebCore::Range::detach): Deleted.
+        (WebCore::Range::absoluteBoundingBox): Deleted.
+        * dom/Range.h:
+
</ins><span class="cx"> 2015-09-24  Brent Fulgham  &lt;bfulgham@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Win] Unreviewed build failure.
</span></span></pre></div>
<a id="trunkSourceWebCoredomContainerNodecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/ContainerNode.cpp (190228 => 190229)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/ContainerNode.cpp        2015-09-24 23:03:24 UTC (rev 190228)
+++ trunk/Source/WebCore/dom/ContainerNode.cpp        2015-09-24 23:33:34 UTC (rev 190229)
</span><span class="lines">@@ -216,13 +216,15 @@
</span><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static inline bool checkAddChild(ContainerNode&amp; newParent, Node&amp; newChild, Node* refChild, ExceptionCode&amp; ec)
</del><ins>+// https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity
+bool ContainerNode::ensurePreInsertionValidity(Node&amp; newChild, Node* refChild, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><del>-    ec = checkAcceptChild(newParent, newChild, refChild, Document::AcceptChildOperation::InsertOrAdd);
</del><ins>+    ec = checkAcceptChild(*this, newChild, refChild, Document::AcceptChildOperation::InsertOrAdd);
</ins><span class="cx">     return !ec;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static inline bool checkReplaceChild(ContainerNode&amp; newParent, Node&amp; newChild, Node&amp; oldChild, ExceptionCode&amp; ec)
</del><ins>+// https://dom.spec.whatwg.org/#concept-node-replace
+static inline bool checkPreReplacementValidity(ContainerNode&amp; newParent, Node&amp; newChild, Node&amp; oldChild, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     ec = checkAcceptChild(newParent, newChild, &amp;oldChild, Document::AcceptChildOperation::Replace);
</span><span class="cx">     return !ec;
</span><span class="lines">@@ -243,7 +245,7 @@
</span><span class="cx">         return appendChild(WTF::move(newChild), ec);
</span><span class="cx"> 
</span><span class="cx">     // Make sure adding the new child is OK.
</span><del>-    if (!checkAddChild(*this, newChild, refChild, ec))
</del><ins>+    if (!ensurePreInsertionValidity(newChild, refChild, ec))
</ins><span class="cx">         return false;
</span><span class="cx"> 
</span><span class="cx">     // NOT_FOUND_ERR: Raised if refChild is not a child of this node
</span><span class="lines">@@ -401,7 +403,7 @@
</span><span class="cx">         return true;
</span><span class="cx"> 
</span><span class="cx">     // Make sure replacing the old child with the new is ok
</span><del>-    if (!checkReplaceChild(*this, newChild, oldChild, ec))
</del><ins>+    if (!checkPreReplacementValidity(*this, newChild, oldChild, ec))
</ins><span class="cx">         return false;
</span><span class="cx"> 
</span><span class="cx">     // NOT_FOUND_ERR: Raised if oldChild is not a child of this node.
</span><span class="lines">@@ -424,7 +426,7 @@
</span><span class="cx">         return true;
</span><span class="cx"> 
</span><span class="cx">     // Does this one more time because removeChild() fires a MutationEvent.
</span><del>-    if (!checkReplaceChild(*this, newChild, oldChild, ec))
</del><ins>+    if (!checkPreReplacementValidity(*this, newChild, oldChild, ec))
</ins><span class="cx">         return false;
</span><span class="cx"> 
</span><span class="cx">     NodeVector targets;
</span><span class="lines">@@ -433,7 +435,7 @@
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><span class="cx">     // Does this yet another check because collectChildrenAndRemoveFromOldParent() fires a MutationEvent.
</span><del>-    if (!checkReplaceChild(*this, newChild, oldChild, ec))
</del><ins>+    if (!checkPreReplacementValidity(*this, newChild, oldChild, ec))
</ins><span class="cx">         return false;
</span><span class="cx"> 
</span><span class="cx">     InspectorInstrumentation::willInsertDOMNode(document(), *this);
</span><span class="lines">@@ -667,7 +669,7 @@
</span><span class="cx">     ec = 0;
</span><span class="cx"> 
</span><span class="cx">     // Make sure adding the new child is ok
</span><del>-    if (!checkAddChild(*this, newChild, nullptr, ec))
</del><ins>+    if (!ensurePreInsertionValidity(newChild, nullptr, ec))
</ins><span class="cx">         return false;
</span><span class="cx"> 
</span><span class="cx">     if (newChild.ptr() == m_lastChild) // nothing to do
</span></span></pre></div>
<a id="trunkSourceWebCoredomContainerNodeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/ContainerNode.h (190228 => 190229)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/ContainerNode.h        2015-09-24 23:03:24 UTC (rev 190228)
+++ trunk/Source/WebCore/dom/ContainerNode.h        2015-09-24 23:33:34 UTC (rev 190229)
</span><span class="lines">@@ -153,6 +153,8 @@
</span><span class="cx">     void append(Vector&lt;NodeOrString&gt;&amp;&amp;, ExceptionCode&amp;);
</span><span class="cx">     void prepend(Vector&lt;NodeOrString&gt;&amp;&amp;, ExceptionCode&amp;);
</span><span class="cx"> 
</span><ins>+    bool ensurePreInsertionValidity(Node&amp; newChild, Node* refChild, ExceptionCode&amp;);
+
</ins><span class="cx"> protected:
</span><span class="cx">     explicit ContainerNode(Document&amp;, ConstructionType = CreateContainer);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoredomRangecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Range.cpp (190228 => 190229)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Range.cpp        2015-09-24 23:03:24 UTC (rev 190228)
+++ trunk/Source/WebCore/dom/Range.cpp        2015-09-24 23:33:34 UTC (rev 190229)
</span><span class="lines">@@ -835,107 +835,58 @@
</span><span class="cx">     return processContents(Clone, ec);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void Range::insertNode(PassRefPtr&lt;Node&gt; prpNewNode, ExceptionCode&amp; ec)
</del><ins>+void Range::insertNode(RefPtr&lt;Node&gt;&amp;&amp; node, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><del>-    RefPtr&lt;Node&gt; newNode = prpNewNode;
-
-    ec = 0;
-    if (!newNode) {
</del><ins>+    if (!node) {
</ins><span class="cx">         ec = TypeError;
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    // HIERARCHY_REQUEST_ERR: Raised if the container of the start of the Range is of a type that
-    // does not allow children of the type of newNode or if newNode is an ancestor of the container.
-
-    // an extra one here - if a text node is going to split, it must have a parent to insert into
-    bool startIsText = is&lt;Text&gt;(startContainer());
-    if (startIsText &amp;&amp; !startContainer().parentNode()) {
</del><ins>+    bool startIsCharacterData = is&lt;CharacterData&gt;(startContainer());
+    if (startIsCharacterData &amp;&amp; !startContainer().parentNode()) {
</ins><span class="cx">         ec = HIERARCHY_REQUEST_ERR;
</span><span class="cx">         return;
</span><span class="cx">     }
</span><del>-
-    // In the case where the container is a text node, we check against the container's parent, because
-    // text nodes get split up upon insertion.
-    Node* checkAgainst;
-    if (startIsText)
-        checkAgainst = startContainer().parentNode();
-    else
-        checkAgainst = &amp;startContainer();
-
-    Node::NodeType newNodeType = newNode-&gt;nodeType();
-    int numNewChildren;
-    if (newNodeType == Node::DOCUMENT_FRAGMENT_NODE &amp;&amp; !newNode-&gt;isShadowRoot()) {
-        // check each child node, not the DocumentFragment itself
-        numNewChildren = 0;
-        for (Node* c = newNode-&gt;firstChild(); c; c = c-&gt;nextSibling()) {
-            if (!checkAgainst-&gt;childTypeAllowed(c-&gt;nodeType())) {
-                ec = HIERARCHY_REQUEST_ERR;
-                return;
-            }
-            ++numNewChildren;
-        }
-    } else {
-        numNewChildren = 1;
-        if (!checkAgainst-&gt;childTypeAllowed(newNodeType)) {
-            ec = HIERARCHY_REQUEST_ERR;
-            return;
-        }
</del><ins>+    bool startIsText = startIsCharacterData &amp;&amp; startContainer().nodeType() == Node::TEXT_NODE;
+    RefPtr&lt;Node&gt; referenceNode = startIsText ? &amp;startContainer() : startContainer().traverseToChildAt(startOffset());
+    Node* parentNode = referenceNode ? referenceNode-&gt;parentNode() : &amp;startContainer();
+    if (!is&lt;ContainerNode&gt;(parentNode)) {
+        ec = HIERARCHY_REQUEST_ERR;
+        return;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    for (Node* n = &amp;startContainer(); n; n = n-&gt;parentNode()) {
-        if (n == newNode) {
-            ec = HIERARCHY_REQUEST_ERR;
-            return;
-        }
-    }
</del><ins>+    Ref&lt;ContainerNode&gt; parent = downcast&lt;ContainerNode&gt;(*parentNode);
</ins><span class="cx"> 
</span><del>-    // INVALID_NODE_TYPE_ERR: Raised if newNode is an Attr, Entity, ShadowRoot or Document node.
-    switch (newNodeType) {
-    case Node::ATTRIBUTE_NODE:
-    case Node::DOCUMENT_NODE:
-        ec = INVALID_NODE_TYPE_ERR;
</del><ins>+    ec = 0;
+    if (!parent-&gt;ensurePreInsertionValidity(*node, referenceNode.get(), ec))
</ins><span class="cx">         return;
</span><del>-    default:
-        if (newNode-&gt;isShadowRoot()) {
-            ec = INVALID_NODE_TYPE_ERR;
-            return;
-        }
-        break;
-    }
</del><span class="cx"> 
</span><span class="cx">     EventQueueScope scope;
</span><del>-    bool collapsed = m_start == m_end;
-    RefPtr&lt;Node&gt; container;
</del><span class="cx">     if (startIsText) {
</span><del>-        container = &amp;startContainer();
-        RefPtr&lt;Text&gt; newText = downcast&lt;Text&gt;(*container).splitText(m_start.offset(), ec);
</del><ins>+        referenceNode = downcast&lt;Text&gt;(startContainer()).splitText(startOffset(), ec);
</ins><span class="cx">         if (ec)
</span><span class="cx">             return;
</span><del>-        
-        container = &amp;startContainer();
-        container-&gt;parentNode()-&gt;insertBefore(newNode.releaseNonNull(), newText.get(), ec);
-        if (ec)
-            return;
</del><ins>+    }
</ins><span class="cx"> 
</span><del>-        if (collapsed &amp;&amp; newText-&gt;parentNode() == container &amp;&amp; &amp;container-&gt;document() == &amp;ownerDocument())
-            m_end.setToBeforeChild(*newText);
-    } else {
-        container = &amp;startContainer();
-        RefPtr&lt;Node&gt; firstInsertedChild = newNodeType == Node::DOCUMENT_FRAGMENT_NODE ? newNode-&gt;firstChild() : newNode;
-        RefPtr&lt;Node&gt; lastInsertedChild = newNodeType == Node::DOCUMENT_FRAGMENT_NODE ? newNode-&gt;lastChild() : newNode;
-        RefPtr&lt;Node&gt; childAfterInsertedContent = container-&gt;traverseToChildAt(m_start.offset());
-        container-&gt;insertBefore(newNode.release(), childAfterInsertedContent.get(), ec);
-        if (ec)
-            return;
</del><ins>+    if (referenceNode.get() == node.get())
+        referenceNode = referenceNode-&gt;nextSibling();
</ins><span class="cx"> 
</span><del>-        if (collapsed &amp;&amp; numNewChildren &amp;&amp; &amp;container-&gt;document() == &amp;ownerDocument()) {
-            if (firstInsertedChild-&gt;parentNode() == container)
-                m_start.setToBeforeChild(*firstInsertedChild);
-            if (lastInsertedChild-&gt;parentNode() == container)
-                m_end.set(container, lastInsertedChild-&gt;computeNodeIndex() + 1, lastInsertedChild.get());
-        }
-    }
</del><ins>+    node-&gt;remove(ec);
+    if (ec)
+        return;
+
+    unsigned newOffset = referenceNode ? referenceNode-&gt;computeNodeIndex() : parent-&gt;countChildNodes();
+    if (is&lt;DocumentFragment&gt;(*node))
+        newOffset += downcast&lt;DocumentFragment&gt;(*node).countChildNodes();
+    else
+        ++newOffset;
+
+    parent-&gt;insertBefore(node.releaseNonNull(), referenceNode.get(), ec);
+    if (ec)
+        return;
+
+    if (collapsed())
+        setEnd(parent.ptr(), newOffset, ec);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> String Range::toString() const
</span><span class="lines">@@ -1177,7 +1128,7 @@
</span><span class="cx">     RefPtr&lt;DocumentFragment&gt; fragment = extractContents(ec);
</span><span class="cx">     if (ec)
</span><span class="cx">         return;
</span><del>-    insertNode(newParent, ec);
</del><ins>+    insertNode(newParent.copyRef(), ec);
</ins><span class="cx">     if (ec)
</span><span class="cx">         return;
</span><span class="cx">     newParent-&gt;appendChild(fragment.release(), ec);
</span></span></pre></div>
<a id="trunkSourceWebCoredomRangeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Range.h (190228 => 190229)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Range.h        2015-09-24 23:03:24 UTC (rev 190228)
+++ trunk/Source/WebCore/dom/Range.h        2015-09-24 23:33:34 UTC (rev 190229)
</span><span class="lines">@@ -83,7 +83,7 @@
</span><span class="cx">     void deleteContents(ExceptionCode&amp;);
</span><span class="cx">     RefPtr&lt;DocumentFragment&gt; extractContents(ExceptionCode&amp;);
</span><span class="cx">     RefPtr&lt;DocumentFragment&gt; cloneContents(ExceptionCode&amp;);
</span><del>-    void insertNode(PassRefPtr&lt;Node&gt;, ExceptionCode&amp;);
</del><ins>+    void insertNode(RefPtr&lt;Node&gt;&amp;&amp;, ExceptionCode&amp;);
</ins><span class="cx">     String toString() const;
</span><span class="cx"> 
</span><span class="cx">     String toHTML() const;
</span></span></pre>
</div>
</div>

</body>
</html>