Source code
Revision control
Copy as Markdown
Other Tools
<!doctype html>
<html class="reftest-wait">
<meta charset="utf-8">
<script src="/tests/SimpleTest/EventUtils.js"></script>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<style>
#editable {
outline: 1px solid black;
width: 300px;
height: 100px;
}
</style>
<div id="editable" contenteditable></div>
<script>
SimpleTest.waitForFocus(function() {
let div = document.getElementById("editable");
div.focus();
sendString("xxx");
document.documentElement.className = "";
});
</script>
</html>