|
1 <html xmlns="http://www.w3.org/1999/xhtml"> |
|
2 <!-- |
|
3 https://bugzilla.mozilla.org/show_bug.cgi?id=404209 |
|
4 --> |
|
5 <head> |
|
6 <title>Test for Bug 404209</title> |
|
7 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
8 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
|
9 <style type="text/css"> |
|
10 div::first-letter { color: green; } |
|
11 </style> |
|
12 </head> |
|
13 <body> |
|
14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=404209">Mozilla Bug 404209</a> |
|
15 <table id="table" dir="rtl"><div><span id="v"><span><tfoot></tfoot>abcd</span></span></div></table> |
|
16 <pre id="test"> |
|
17 <script class="testbody" type="text/javascript"> |
|
18 function boom1() |
|
19 { |
|
20 document.getElementById("table").style.borderRight = "1px solid magenta"; |
|
21 setTimeout(boom2, 400); |
|
22 } |
|
23 |
|
24 function boom2() |
|
25 { |
|
26 var v = document.getElementById("v"); |
|
27 var newTD = document.createElementNS("http://www.w3.org/1999/xhtml", "td"); |
|
28 newTD.setAttribute("width", "13%"); |
|
29 v.insertBefore(newTD, v.firstChild); |
|
30 setTimeout(lastTest, 400); |
|
31 } |
|
32 |
|
33 function lastTest() |
|
34 { |
|
35 /** Test for Bug 404209 **/ |
|
36 ok(true, "Should not crash"); |
|
37 SimpleTest.finish(); |
|
38 } |
|
39 |
|
40 setTimeout(boom1, 400); |
|
41 SimpleTest.waitForExplicitFinish(); |
|
42 </script> |
|
43 </pre> |
|
44 </body> |
|
45 </html> |
|
46 |