2011-08-12 23:12:45 +04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html class="reftest-wait">
|
|
|
|
<script>
|
|
|
|
function init() {
|
|
|
|
var editor = document.getElementById('editor');
|
2015-09-08 10:13:00 +03:00
|
|
|
// invalid language will default to en-US
|
2011-08-12 23:12:45 +04:00
|
|
|
editor.setAttribute('lang', 'testing-XX');
|
|
|
|
editor.addEventListener("focus", function() {
|
|
|
|
window.setTimeout(function() {
|
|
|
|
document.documentElement.className = '';
|
|
|
|
}, 0);
|
|
|
|
});
|
|
|
|
editor.focus();
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<body onload="init()">
|
2015-09-08 10:13:00 +03:00
|
|
|
<textarea id="editor" lang="en-US">good possible word</textarea>
|
2011-08-12 23:12:45 +04:00
|
|
|
</body>
|
|
|
|
</html>
|