Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / selection-empty-documentElement.html
blobdbbd65012ec3e30c845f99d9a324be2d5b57eb56
1 <html>
2 <head>
3 <script>
4 function runTest() {
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 var oSelection = window.getSelection();
9 var de = document.documentElement;
10 document.removeChild(document.documentElement);
11 oSelection.modify("move","backward","documentboundary");
13 var html = document.createElement('html');
14 var body = document.createElement('body');
15 body.innerHTML="<p>Test for bug <a href=\"https://bugs.webkit.org/show_bug.cgi?id=63908\">https://bugs.webkit.org/show_bug.cgi?id=63908</a></p><p>This test shouldn\'t crash</p>";
16 html.appendChild(body);
17 document.appendChild(html);
19 </script>
20 </head>
21 <body>
22 <script>
23 runTest();
24 </script>
25 </body>
26 </html>