gecko/dom/browser-element/mochitest/file_inputmethod.html

21 lines
504 B
HTML

<!DOCTYPE HTML>
<html>
<body>
<script>
var im = navigator.mozInputMethod;
if (im) {
im.oninputcontextchange = function() {
var ctx = im.inputcontext;
// Report back to parent frame on status of ctx gotten.
window.postMessage(window.location.hash + !!ctx, '*');
// If there is a context, send out the hash.
if (ctx) {
ctx.replaceSurroundingText(location.hash);
}
};
}
</script>
<p>This frame represents the input method frame.</p>
</body>
</html>