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>
5 <style>
6 .fl:first-line { }
7 .inh { position: inherit; }
8 .abs { position: absolute; }
9 </style>
11 <script>
13 var x, y;
15 function boom()
16 {
17 x = document.getElementById("x");
18 y = document.getElementById("y");
20 x.setAttribute('class', "fl abs");
21 y.setAttribute('class', "inh");
22 setTimeout(boom2, 5);
23 }
25 function boom2()
26 {
27 y.setAttribute('class', "abs");
29 document.documentElement.removeAttribute("class");
30 }
32 </script>
34 </head>
36 <body onload="setTimeout(boom, 5);">
37 <div id="x">
38 <p id="y">foo</p>
39 </div>
40 </body>
42 </html>