blob: 3e7b546b8ef664f868dd186ed4f66d81f41f3d3b [file] [log] [blame]
<!DOCTYPE html>
<body contenteditable></body>
<script>
if (window.testRunner)
testRunner.dumpAsText();
document.body.focus();
document.execCommand("InsertHTML", true, "<img></img>");
document.execCommand("SelectAll");
document.execCommand("Underline");
document.execCommand("InsertText", true, "foo");
document.body.textContent = `The underlined text should be 'foo': '${document.querySelector("U").textContent}'`;
</script>