blob: 7eb53c968ac31a458a3e4211b9d4a26930231529 [file] [log] [blame]
<!DOCTYPE html>
<body>
<pre>
x
<span dir="rtl">
<ruby>
</ruby>
<textarea>
x
</textarea>
<script>
window.console.log = function() { };
if (window.testRunner)
testRunner.dumpAsText();
document.designMode = 'on';
var hasRunListener = false;
document.addEventListener("DOMSubtreeModified", function() {
// Avoid calling recursively and generating a ton of log messages
if (!hasRunListener) {
hasRunListener = true;
document.execCommand('JustifyLeft');
}
});
document.execCommand("SelectAll", false)
var selection = window.getSelection();
selection.deleteFromDocument();
document.body.innerText = "Test passes if no crash."
</script>