Fri, 16 Jan 2015 04:50:19 +0100
Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32
1 <!DOCTYPE html>
2 <html class="reftest-wait">
3 <head>
4 <style>
5 div {
6 min-height: 36px;
7 }
8 </style>
9 <script>
10 function test() {
11 document.querySelector("div").focus();
12 }
13 function focusTriggered() {
14 document.documentElement.removeAttribute("class");
15 }
16 </script>
17 </head>
18 <body onload="test()">
19 <div contenteditable onfocus="focusTriggered()"></div>
20 </body>
21 </html>