Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <html> |
michael@0 | 2 | <head> |
michael@0 | 3 | <script> |
michael@0 | 4 | function clickit() |
michael@0 | 5 | { |
michael@0 | 6 | document.getElementById('button').click(); |
michael@0 | 7 | } |
michael@0 | 8 | window.addEventListener('load', clickit, false); |
michael@0 | 9 | </script> |
michael@0 | 10 | </head> |
michael@0 | 11 | <body> |
michael@0 | 12 | <div style="width:400px;"> |
michael@0 | 13 | <q style="position:relative;"><q style="position:relative;"> |
michael@0 | 14 | Some random text, some random text, some random text |
michael@0 | 15 | <span style="position: relative;"> |
michael@0 | 16 | Some random text, some random text, some random text |
michael@0 | 17 | </span> |
michael@0 | 18 | </q></q> |
michael@0 | 19 | </div> |
michael@0 | 20 | <script> |
michael@0 | 21 | function doe(){ |
michael@0 | 22 | var q1=document.getElementsByTagName('q')[0]; |
michael@0 | 23 | var q2=document.getElementsByTagName('q')[1]; |
michael@0 | 24 | q1.style.position='static'; |
michael@0 | 25 | q2.style.position='static'; |
michael@0 | 26 | } |
michael@0 | 27 | //setTimeout(doe,200); |
michael@0 | 28 | </script> |
michael@0 | 29 | <button id="button" onclick="doe()">Clicking this button should not crash Mozilla</button> |
michael@0 | 30 | </body> |
michael@0 | 31 | </html> |