OLD | NEW |
---|---|
(Empty) | |
1 <html> | |
2 <head> | |
3 <style> | |
4 table { | |
5 border: 1px solid blue; | |
6 width: 200px; | |
7 height: 100px; | |
8 } | |
9 </style> | |
10 <script> | |
11 function runTest() | |
12 { | |
13 var tableCell = document.getElementById('noChild'); | |
14 var text = document.createTextNode(" "); | |
15 tableCell.appendChild(text); | |
16 } | |
17 </script> | |
18 </head> | |
19 <body onload="runTest()"> | |
20 <table> | |
21 <tr> | |
22 <td width="50%" style=" border: 1px solid red;background-color: yellow;"><p></p></td> | |
23 <td width="50%" style=" border: 1px solid red; "></td> | |
24 </tr> | |
25 </table> | |
26 </br> | |
27 <table> | |
28 <tr> | |
29 <td width="50%" style=" border: 1px solid red;background-color: yellow;"><p></p></td> | |
30 <td id="noChild" width="50%" style=" border: 1px solid red; "></ td> | |
31 </tr> | |
32 </table> | |
33 </body> | |
34 </html> | |
OLD | NEW |