blob: dbbd65012ec3e30c845f99d9a324be2d5b57eb56 [file] [log] [blame]
<html>
<head>
<script>
function runTest() {
if (window.testRunner)
testRunner.dumpAsText();
var oSelection = window.getSelection();
var de = document.documentElement;
document.removeChild(document.documentElement);
oSelection.modify("move","backward","documentboundary");
var html = document.createElement('html');
var body = document.createElement('body');
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>";
html.appendChild(body);
document.appendChild(html);
}
</script>
</head>
<body>
<script>
runTest();
</script>
</body>
</html>