<!DOCTYPE> <html class="reftest-wait"> <script> function onloadHandler() { document.getElementById('e').setCustomValidity('foo'); document.getElementById('e').focus(); } </script> <body onload="onloadHandler();"> <select id='e' onfocus="document.documentElement.className='';"></select> </body> </html>