blob: 26059ef5059df0dae905a0913a1a7b819fc2003a [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>
if (window.testRunner)
testRunner.dumpAsText();
onload = function() {
// Insert "body" element into "div" element. Simple repetition of "body"
// element or renaming "body" to "div" doesn't reproduce bug.
var targetNode = document.getElementById('target');
targetNode.appendChild(document.body.cloneNode(true));
document.designMode = 'on';
document.execCommand('SelectAll');
document.execCommand('JustifyRight');
document.body.textContent = 'PASS if Blink doesn\'t crash.';
};
</script>
</head>
<body>
<textarea></textarea>
<span></span>
<div id="target" style="display:inline-table">foo</div>
</body>
</html>