blob: e51c8944daf8b3cf9b5300f87466e8230cf74a85 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script>
document.addEventListener("DOMContentLoaded", function () {
document.execCommand("SelectAll", false);
window.getSelection().deleteFromDocument();
}, true);
var count = 0;
document.addEventListener("DOMSubtreeModified", function () {
count++;
if (count < 3) {
var src = event.srcElement;
src.contentEditable = "true";
src.innerHTML = '<div></div>';
document.execCommand('InsertOrderedList', false, false);
}
else if (count == 6)
document.write('Pass if not crash.')
}, false);
if (window.testRunner)
testRunner.dumpAsText();
</script>
<h5>
aa
<textarea></textarea>
</h5>
<dl>
aa
</dl>
</body>
</html>