bug1415416.html (665B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=1415416 5 --> 6 <head> 7 <title>Test for Bug 1415416</title> 8 <script src="/tests/SimpleTest/EventUtils.js"></script> 9 <script> 10 function runTest() { 11 var text = document.getElementById("text1"); 12 text.readOnly = false; 13 text.value = ""; 14 15 text = document.getElementById("text2"); 16 text.readOnly = false; 17 text.value = ""; 18 19 sendKey("TAB"); 20 document.documentElement.removeAttribute("class"); 21 } 22 </script> 23 </head> 24 <body onload="runTest()"> 25 <input id = "text1" type="text" readonly autofocus value="A" /> 26 <input id = "text2" type="text" readonly value="B"/> 27 </body> 28 </html>