test_bug238409.html (1442B)
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 src="/tests/SimpleTest/SimpleTest.js"></script> 9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 10 </head> 11 <body> 12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=238409">Mozilla Bug 238409</a> 13 <p id="display"></p> 14 <div id="content" style="display: none"> 15 <table id="table_spacing0" cellspacing="0"> 16 <tr><td>cellspacing="0"</td></tr> 17 </table> 18 19 <table id="table_spacing2" cellspacing="2"> 20 <tr><td>cellspacing="2"</td></tr> 21 </table> 22 23 <table id="table_spacingNone"> 24 <tr><td>no cellspacing</td></tr> 25 </table> 26 27 <table id="table_spacingMalformed" cellspacing> 28 <tr><td>malformed cellspacing</td></tr> 29 </table> 30 </div> 31 <pre id="test"> 32 <script class="testbody" type="text/javascript"> 33 34 /** Test for Bug 238409 */ 35 36 ok(document.getElementById("table_spacing0").cellSpacing == "0", "parsing table with cellspacing='0'"); 37 ok(document.getElementById("table_spacing2").cellSpacing == "2", "parsing table with cellspacing='2'"); 38 ok(document.getElementById("table_spacingNone").cellSpacing == "", "parsing table without cellspacing"); 39 ok(document.getElementById("table_spacingMalformed").cellSpacing == "", "parsing table with malformed cellspacing"); 40 41 </script> 42 </pre> 43 </body> 44 </html>