blob: caa9d955580584be64300e73093b9bfbe0ca443a [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
@font-face {
font-family: Ahem;
src: url("../../resources/Ahem.ttf");
}
#test {
font-family: Ahem;
width: 100px;
}
</style>
</head>
<body>
<div id="test" contenteditable="true"></div>
<script>
if (window.internals)
internals.setContinuousSpellCheckingEnabled(true);
var testElement = document.getElementById("test");
testElement.focus();
document.execCommand("InsertText", false, "misllHlll"); // The H is a placeholder for the hyphen (had it been automatically inserted).
document.execCommand("InsertText", false, " "); // Trigger spell checker
testElement.blur();
</script>
</body>
</html>