338427-3-ref.html (540B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <script> 4 function init() { 5 var editor = document.getElementById('editor'); 6 // invalid language will default to en-US 7 editor.setAttribute('lang', 'testing-XX'); 8 editor.addEventListener("focus", function() { 9 window.setTimeout(function() { 10 document.documentElement.className = ''; 11 }, 0); 12 }); 13 editor.focus(); 14 } 15 </script> 16 <body onload="init()"> 17 <textarea id="editor" spellcheck="false" lang="en-US">good possible word</textarea> 18 </body> 19 </html>