input-password-remask-ref.html (429B)
1 <!DOCTYPE HTML> 2 <html class="reftest-wait"> 3 <head> 4 <script src="/tests/SimpleTest/SimpleTest.js"></script> 5 </head> 6 <body> 7 <input type="password" value="123456"> 8 <script> 9 function runTest() { 10 let input = document.getElementsByTagName("input")[0]; 11 input.focus(); 12 input.setSelectionRange(3, 4); 13 document.documentElement.removeAttribute("class"); 14 } 15 16 SimpleTest.waitForFocus(runTest); 17 </script> 18 19 </body> 20 </html>