haikuwebkit/LayoutTests/editing/execCommand/insert-tab-to-html-element-...

19 lines
404 B
HTML

<!DOCTYPE html>
<head>
<script>
if (window.testRunner)
testRunner.dumpAsText();
onload = function() {
getSelection().collapse(document.body, 0);
document.body.parentNode.removeChild(document.body);
document.designMode = 'on';
document.execCommand("InsertText", false, '\t');
document.documentElement.textContent = 'PASS if not crash.';
}
</script>
</head>
<body>
</body>
</html>