b=450088 backing out (new reftest failed)
[wine-gecko.git] / testing / mochitest / tests / test_bug238409.html
blobc9b4f25a078b8a3e80cd6dd1e0c13b98320d8445
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=238409
5 -->
6 <head>
7 <title>Test for Bug 238409</title>
8 <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
9 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
11 </head>
12 <body>
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=238409">Mozilla Bug 238409</a>
14 <p id="display"></p>
15 <div id="content" style="display: none">
16 <table id="table_spacing0" cellspacing="0">
17 <tr><td>cellspacing="0"</td></tr>
18 </table>
20 <table id="table_spacing2" cellspacing="2">
21 <tr><td>cellspacing="2"</td></tr>
22 </table>
24 <table id="table_spacingNone">
25 <tr><td>no cellspacing</td></tr>
26 </table>
28 <table id="table_spacingMalformed" cellspacing>
29 <tr><td>malformed cellspacing</td></tr>
30 </table>
31 </div>
32 <pre id="test">
33 <script class="testbody" type="text/javascript">
35 /** Test for Bug 238409 **/
37 ok(document.getElementById("table_spacing0").cellSpacing == "0", "parsing table with cellspacing='0'");
38 ok(document.getElementById("table_spacing2").cellSpacing == "2", "parsing table with cellspacing='2'");
39 ok(document.getElementById("table_spacingNone").cellSpacing == "", "parsing table without cellspacing");
40 ok(document.getElementById("table_spacingMalformed").cellSpacing == "", "parsing table with malformed cellspacing");
42 </script>
43 </pre>
44 </body>
45 </html>