Hi all,

I've got some code that generates a table and then inserts it into a div.

Now I must stress this already works fine, but!

When I insert either of the following:

Code:
<table width="600px" cellspacing="0" cellpadding="0" border="0" id="TableData">
<tr class="DataHeader">
	<td>IP</td>
	<td>ISP</td>
	<td>OS</td>
	<td>Browser</td>
	<td>Date</td>
</tr>
<tr class="DataRow">
	<td>127.0.0.1</td>
	<td>Netpresto Limited</td>
	<td>WinXP</td>
	<td>Firefox 1.5.0.1</td>
	<td>25/08/2006</td>
</tr>
<tr class="DataRow">
	<td>127.0.0.1</td>
	<td>Netpresto Limited</td>
	<td>WinXP</td>
	<td>Firefox 1.5.0.1</td>
	<td>25/08/2006</td>
</tr>
<tr class="DataRow">
	<td>127.0.0.1</td>
	<td>Netpresto Limited</td>
	<td>WinXP</td>
	<td>MSIE 6.0</td>
	<td>29/08/2006</td>
</tr>
<tr class="DataRow">
	<td>127.0.0.1</td>
	<td>Netpresto Limited</td>
	<td>WinXP</td>
	<td>MSIE 6.0</td>
	<td>29/08/2006</td>
</tr>
<tr class="DataRow">
	<td>127.0.0.1</td>
	<td>Netpresto Limited</td>
	<td>WinXP</td>
	<td>MSIE 6.0</td>
	<td>29/08/2006</td>
</tr>
<tr class="DataRow">
	<td>127.0.0.1</td>
	<td>Netpresto Limited</td>
	<td>WinXP</td>
	<td>MSIE 6.0</td>
	<td>29/08/2006</td>
</tr>
<tr class="DataRow">
	<td>127.0.0.1</td>
	<td>Netpresto Limited</td>
	<td>WinXP</td>
	<td>MSIE 6.0</td>
	<td>30/08/2006</td>
</tr>
<tr class="DataRow">
	<td>127.0.0.1</td>
	<td>Netpresto Limited</td>
	<td>WinXP</td>
	<td>MSIE 6.0</td>
	<td>30/08/2006</td>
</tr>
<tr class="DataRow">
	<td>127.0.0.1</td>
	<td>Netpresto Limited</td>
	<td>WinXP</td>
	<td>MSIE 6.0</td>
	<td>30/08/2006</td>
</tr>
<tr class="DataRow">
	<td>127.0.0.1</td>
	<td>Netpresto Limited</td>
	<td>WinXP</td>
	<td>MSIE 6.0</td>
	<td>30/08/2006</td>
</tr>
<tr class="DataPager">
<td colspan="5">
<b>0</b>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=1');">1</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=2');">2</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=3');">3</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=4');">4</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=5');">5</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=6');">6</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=7');">7</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=8');">8</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=9');">9</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=10');">10</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=11');">11</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=12');">12</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=13');">13</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=14');">14</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=15');">15</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=16');">16</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=17');">17</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=18');">18</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=19');">19</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=20');">20</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=21');">21</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=22');">22</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=23');">23</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=24');">24</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=25');">25</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=26');">26</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=27');">27</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=28');">28</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=29');">29</a>
&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','&Query=&Page=30');">30</a>
&nbsp;</td>
</tr>
</table>
or

Code:
<table width="600px" cellspacing="0" cellpadding="0" border="0" id="TableData"><tr class="DataHeader"><td>IP</td><td>ISP</td><td>OS</td><td>Browser</td><td>Date</td></tr><tr class="DataRow"><td>127.0.0.1</td><td>Netpresto Limited</td><td>WinXP</td><td>Firefox 1.5.0.1</td><td>25/08/2006</td></tr><tr class="DataRow"><td>127.0.0.1</td><td>Netpresto Limited</td><td>WinXP</td><td>Firefox 1.5.0.1</td><td>25/08/2006</td></tr><tr class="DataRow"><td>127.0.0.1</td><td>Netpresto Limited</td><td>WinXP</td><td>MSIE 6.0</td><td>29/08/2006</td></tr><tr class="DataRow"><td>127.0.0.1</td><td>Netpresto Limited</td><td>WinXP</td><td>MSIE 6.0</td><td>29/08/2006</td></tr><tr class="DataRow"><td>127.0.0.1</td><td>Netpresto Limited</td><td>WinXP</td><td>MSIE 6.0</td><td>29/08/2006</td></tr><tr class="DataRow"><td>127.0.0.1</td><td>Netpresto Limited</td><td>WinXP</td><td>MSIE 6.0</td><td>29/08/2006</td></tr><tr class="DataRow"><td>127.0.0.1</td><td>Netpresto Limited</td><td>WinXP</td><td>MSIE 6.0</td><td>30/08/2006</td></tr><tr class="DataRow"><td>127.0.0.1</td><td>Netpresto Limited</td><td>WinXP</td><td>MSIE 6.0</td><td>30/08/2006</td></tr><tr class="DataRow"><td>127.0.0.1</td><td>Netpresto Limited</td><td>WinXP</td><td>MSIE 6.0</td><td>30/08/2006</td></tr><tr class="DataRow"><td>127.0.0.1</td><td>Netpresto Limited</td><td>WinXP</td><td>MSIE 6.0</td><td>30/08/2006</td></tr><tr class="DataPager"><td colspan="5"><b>0</b>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d1');">1</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d2');">2</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d3');">3</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d4');">4</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d5');">5</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d6');">6</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d7');">7</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d8');">8</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d9');">9</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d10');">10</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d11');">11</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d12');">12</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d13');">13</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d14');">14</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d15');">15</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d16');">16</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d17');">17</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d18');">18</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d19');">19</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d20');">20</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d21');">21</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d22');">22</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d23');">23</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d24');">24</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d25');">25</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d26');">26</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d27');">27</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d28');">28</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d29');">29</a>&nbsp;<a href="javascript:LoadTable('Location_ISPLookup','TableData','%26Query%3d%26Page%3d30');">30</a>&nbsp;</td></tr></table>
I get an undefined entity error in the Firefox Javascript Console.

Yet it is displayed and the javascript works on both IE and FF.

Anyone have any idea's?