4 https://bugzilla.mozilla.org/show_bug.cgi?id=238409
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" />
13 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=238409">Mozilla Bug
238409</a>
15 <div id=
"content" style=
"display: none">
16 <table id=
"table_spacing0" cellspacing=
"0">
17 <tr><td>cellspacing=
"0"</td></tr>
20 <table id=
"table_spacing2" cellspacing=
"2">
21 <tr><td>cellspacing=
"2"</td></tr>
24 <table id=
"table_spacingNone">
25 <tr><td>no cellspacing
</td></tr>
28 <table id=
"table_spacingMalformed" cellspacing
>
29 <tr><td>malformed cellspacing
</td></tr>
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");