blob: 634ab493cda5e894ae26b9b9e70387d3a5d1d078 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/js-test.js"></script>
<textarea id="testArea" designMode="on"></textarea>
<script>
description("Tests that execCommand('insertHTML') on a textarea without renderer returns false and does not crash.");
jsTestIsAsync = true;
onload = () => {
testArea = document.getElementById("testArea");
testArea.focus();
testArea.style = "display:none";
testArea.maxLength = 1;
evalAndLog('document.execCommand("insertHTML", false, "foo")');
shouldBeEqualToString("testArea.innerText", "");
shouldBeEqualToString("testArea.value", "");
finishJSTest();
}
</script>
</body>
</html>