blob: dcc2340bb57a4bf5750751a8c4074228cc6c80d1 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
function runTest()
{
var iframeElement = document.getElementById('iframe1');
var iframeDocument = iframeElement.contentDocument;
var iframeDocumentRoot = iframeDocument.documentElement;
var selection = window.getSelection();
var range = document.createRange();
selection.addRange(range);
range.selectNode(iframeDocumentRoot);
selection.addRange(range);
iframeDocument.removeChild(iframeDocumentRoot);
}
</script>
</head>
<body>
Test passes if it does not crash.
<iframe id="iframe1" onload="runTest()"></iframe>
</body>
</html>