| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
| <html> | |
| <head> | |
| <meta name="description" content="This tests html output" /> | |
| <title>html innerHTML test</title> | |
| <style> | |
| td {border-style:solid; border-width:1px;} | |
| </style> | |
| </head> | |
| <body> | |
| <span><b>This markup:</b> | |
| <xmp id="xmpID"><div> | |
| <table style="border-style:solid; border-width:2px; border-color:red;"> | |
| <thead> | |
| <tr> | |
| <td>one</td> | |
| <td>two</td> | |
| <td>three</td> | |
| </tr> | |
| <tr> | |
| <td>four</td> | |
| <td>five</td> | |
| <td>six</td> | |
| </tr> | |
| <tr> | |
| <td>seven</td> | |
| <td>eight</td> | |
| <td>nine</td> | |
| </tr> | |
| <tfoot> | |
| </table> | |
| </div> | |
| </xmp> | |
| </span> | |
| <div><b>Should produce a table here:</b><span id="logID"></span></div> | |
| <br> | |
| <script> | |
| var xmpObj = document.getElementById('xmpID'); | |
| var logObj = document.getElementById('logID'); | |
| logObj.innerHTML = xmpObj.innerHTML; | |
| </script> | |
| </body> | |
| </html> |