Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / clone-contents-0-end-offset.html
blobcb7cdf64358ddb2f6e485e40f7ff9056d2ce48cb
1 <!-- This test was derived from a real case inside the Mail application, bug 3812471.-->
3 <blockquote id="start"><span id="end">Heck, son, you're a failure</span></blockquote>
5 <p>The result appears below here; should not include any text:</p>
7 <p id="destination">Original text, should not be seen.</p>
9 <script>
11 var start = document.getElementById("start");
12 var end = document.getElementById("end");
13 var destination = document.getElementById("destination");
15 var r = document.createRange();
16 r.setStart(start, 0);
17 r.setEnd(end, 0);
19 while (destination.firstChild)
20 destination.removeChild(destination.firstChild);
21 destination.appendChild(r.cloneContents());
23 </script>