<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: innerHTML Gotchas</title>
	<atom:link href="http://ajaxian.com/archives/innerhtml-gotchas/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/innerhtml-gotchas</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 17 May 2012 07:43:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: siddik</title>
		<link>http://ajaxian.com/archives/innerhtml-gotchas/comment-page-1#comment-276061</link>
		<dc:creator>siddik</dc:creator>
		<pubDate>Wed, 21 Oct 2009 16:28:19 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/innerhtml-gotchas#comment-276061</guid>
		<description>Finally what&#039;s the Solution for the above one...

I have face the similar one here.. please suggest a solution...

var response = response.responseText;
if(response != &quot;false&quot;)
{
document.getElementById(&#039;suggestSolution&#039;).innerHTML = response;
document.getElementById(&#039;suggestSolution&#039;).style.display = &quot;block&quot;;
}

In firefox every thing works fine...But In IE its not working... Please help...</description>
		<content:encoded><![CDATA[<p>Finally what&#8217;s the Solution for the above one&#8230;</p>
<p>I have face the similar one here.. please suggest a solution&#8230;</p>
<p>var response = response.responseText;<br />
if(response != &#8220;false&#8221;)<br />
{<br />
document.getElementById(&#8216;suggestSolution&#8217;).innerHTML = response;<br />
document.getElementById(&#8216;suggestSolution&#8217;).style.display = &#8220;block&#8221;;<br />
}</p>
<p>In firefox every thing works fine&#8230;But In IE its not working&#8230; Please help&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reetha</title>
		<link>http://ajaxian.com/archives/innerhtml-gotchas/comment-page-1#comment-137925</link>
		<dc:creator>Reetha</dc:creator>
		<pubDate>Fri, 20 Oct 2006 04:47:19 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/innerhtml-gotchas#comment-137925</guid>
		<description>el.innerHTML = â€¦whateve you needâ€¦.
var scripts = el.getElementsByTagName(â€scriptâ€);
for(var i=0; i &amp;lg; scripts.length;i++){
eval(scripts[i].innerHTML);
}
====
again the above code doesn&#039;t work with IE.</description>
		<content:encoded><![CDATA[<p>el.innerHTML = â€¦whateve you needâ€¦.<br />
var scripts = el.getElementsByTagName(â€scriptâ€);<br />
for(var i=0; i &lg; scripts.length;i++){<br />
eval(scripts[i].innerHTML);<br />
}<br />
====<br />
again the above code doesn&#8217;t work with IE.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gianluca Busan</title>
		<link>http://ajaxian.com/archives/innerhtml-gotchas/comment-page-1#comment-2637</link>
		<dc:creator>Gianluca Busan</dc:creator>
		<pubDate>Fri, 20 Jan 2006 17:44:16 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/innerhtml-gotchas#comment-2637</guid>
		<description>again....
if you have a script insideâ€¦try something like that

el.innerHTML = â€¦whateve you needâ€¦.
var scripts = el.getElementsByTagName(&quot;script&quot;);
for(var i=0; i &amp;lg; scripts.length;i++){
  eval(scripts[i].innerHTML);
}</description>
		<content:encoded><![CDATA[<p>again&#8230;.<br />
if you have a script insideâ€¦try something like that</p>
<p>el.innerHTML = â€¦whateve you needâ€¦.<br />
var scripts = el.getElementsByTagName(&#8220;script&#8221;);<br />
for(var i=0; i &lg; scripts.length;i++){<br />
  eval(scripts[i].innerHTML);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gianluca Busan</title>
		<link>http://ajaxian.com/archives/innerhtml-gotchas/comment-page-1#comment-2636</link>
		<dc:creator>Gianluca Busan</dc:creator>
		<pubDate>Fri, 20 Jan 2006 17:42:07 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/innerhtml-gotchas#comment-2636</guid>
		<description>sorry, something strange happens after the submit...
i retry:

if you have a script insideâ€¦try something like that
....
el.innerHTML = â€¦whateve you needâ€¦.

var scripts = el.getElementsByTagName(&quot;script&quot;);
for(var i=0; i</description>
		<content:encoded><![CDATA[<p>sorry, something strange happens after the submit&#8230;<br />
i retry:</p>
<p>if you have a script insideâ€¦try something like that<br />
&#8230;.<br />
el.innerHTML = â€¦whateve you needâ€¦.</p>
<p>var scripts = el.getElementsByTagName(&#8220;script&#8221;);<br />
for(var i=0; i</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gianluca Busan</title>
		<link>http://ajaxian.com/archives/innerhtml-gotchas/comment-page-1#comment-2635</link>
		<dc:creator>Gianluca Busan</dc:creator>
		<pubDate>Fri, 20 Jan 2006 17:38:30 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/innerhtml-gotchas#comment-2635</guid>
		<description>if you have a script inside...try something like that

        el.innerHTML = ...whateve you need....

	var scripts = el.getElementsByTagName(&quot;script&quot;);
	for(var i=0; i</description>
		<content:encoded><![CDATA[<p>if you have a script inside&#8230;try something like that</p>
<p>        el.innerHTML = &#8230;whateve you need&#8230;.</p>
<p>	var scripts = el.getElementsByTagName(&#8220;script&#8221;);<br />
	for(var i=0; i</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Christopher</title>
		<link>http://ajaxian.com/archives/innerhtml-gotchas/comment-page-1#comment-1294</link>
		<dc:creator>John Christopher</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/innerhtml-gotchas#comment-1294</guid>
		<description>I ran away screaming when trying to manipulate a tables contents with innerHTML. As with Rob, I was having problems with IE but, mine was a little different. I was able to add the data rows with now problem but, I needed to be able to style the text color differently depending on certain criteria. Mozilla has no problem adding the rows and honoring the css class values. IE, would insert the data but would not honor the css class values of the new rows.</description>
		<content:encoded><![CDATA[<p>I ran away screaming when trying to manipulate a tables contents with innerHTML. As with Rob, I was having problems with IE but, mine was a little different. I was able to add the data rows with now problem but, I needed to be able to style the text color differently depending on certain criteria. Mozilla has no problem adding the rows and honoring the css class values. IE, would insert the data but would not honor the css class values of the new rows.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Beppu</title>
		<link>http://ajaxian.com/archives/innerhtml-gotchas/comment-page-1#comment-1295</link>
		<dc:creator>John Beppu</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/innerhtml-gotchas#comment-1295</guid>
		<description>Why does IE have to suck so hard?</description>
		<content:encoded><![CDATA[<p>Why does IE have to suck so hard?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://ajaxian.com/archives/innerhtml-gotchas/comment-page-1#comment-1296</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/innerhtml-gotchas#comment-1296</guid>
		<description>You&#039;ll also find that IE throws an unknown error if you attempt set the innerHTML property of a &lt;p&gt; to a value surrounded by a &lt;p&gt;&lt;/p&gt;.  While this is technically not good form, you&#039;d expect this to still render as it does when you hard code the HTML instead of throwing a non-descript exception.</description>
		<content:encoded><![CDATA[<p>You&#8217;ll also find that IE throws an unknown error if you attempt set the innerHTML property of a &lt;p&gt; to a value surrounded by a &lt;p&gt;&lt;/p&gt;.  While this is technically not good form, you&#8217;d expect this to still render as it does when you hard code the HTML instead of throwing a non-descript exception.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mel</title>
		<link>http://ajaxian.com/archives/innerhtml-gotchas/comment-page-1#comment-1297</link>
		<dc:creator>Mel</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/innerhtml-gotchas#comment-1297</guid>
		<description>I found another one today while doing some innerHTML work on IE and FF. The issue became apparent when replacing some innerHTML which had an onclick event assigned to it. The onclick event remained active even though the tag had been replaced.

i.e.,
click me

function stuff() {
 $(&#039;foo&#039;).innerHTML = &#039;gone!&#039;;
 return true;
}

The innerHTML content is replaced and the onclick event remains (in IE). Oof.</description>
		<content:encoded><![CDATA[<p>I found another one today while doing some innerHTML work on IE and FF. The issue became apparent when replacing some innerHTML which had an onclick event assigned to it. The onclick event remained active even though the tag had been replaced.</p>
<p>i.e.,<br />
click me</p>
<p>function stuff() {<br />
 $(&#8216;foo&#8217;).innerHTML = &#8216;gone!&#8217;;<br />
 return true;<br />
}</p>
<p>The innerHTML content is replaced and the onclick event remains (in IE). Oof.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mel</title>
		<link>http://ajaxian.com/archives/innerhtml-gotchas/comment-page-1#comment-1298</link>
		<dc:creator>Mel</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/innerhtml-gotchas#comment-1298</guid>
		<description>Damn your clever yet non-functional &#039;preview&#039;!
Anyway, the &#039;click me&#039; text is surrounded by a span with an ID of &#039;foo&#039; and then an A tag with an onclick event that calls stuff();
So there. ;)</description>
		<content:encoded><![CDATA[<p>Damn your clever yet non-functional &#8216;preview&#8217;!<br />
Anyway, the &#8216;click me&#8217; text is surrounded by a span with an ID of &#8216;foo&#8217; and then an A tag with an onclick event that calls stuff();<br />
So there. ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://ajaxian.com/archives/innerhtml-gotchas/comment-page-1#comment-1299</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/innerhtml-gotchas#comment-1299</guid>
		<description>In IE you can&#039;t use innerHTML or outerHTML on tables and instead e to use the &quot;table model&quot;. On MSDN refer to IHTMLTableSection and IHTMLTableRow for methods to insert rows/cells into a table.

See http://msdn.microsoft.com/workshop/author/tables/buildtables.asp</description>
		<content:encoded><![CDATA[<p>In IE you can&#8217;t use innerHTML or outerHTML on tables and instead e to use the &#8220;table model&#8221;. On MSDN refer to IHTMLTableSection and IHTMLTableRow for methods to insert rows/cells into a table.</p>
<p>See <a href="http://msdn.microsoft.com/workshop/author/tables/buildtables.asp" rel="nofollow">http://msdn.microsoft.com/workshop/author/tables/buildtables.asp</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett Fattori</title>
		<link>http://ajaxian.com/archives/innerhtml-gotchas/comment-page-1#comment-1300</link>
		<dc:creator>Brett Fattori</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/innerhtml-gotchas#comment-1300</guid>
		<description>Today&#039;s hack is brought to us by Microsoft&#039;s lunacy:

var innerHTML = &quot;&lt;tr&gt;&lt;td&gt;Hello world!&lt;/td&gt;&lt;/tr&gt;&quot;;

var div = document.createElement(&quot;DIV&quot;);

div.innerHTML = &quot;&lt;table&gt;&quot; + innerHTML + &quot;&lt;/table&gt;&quot;;

// Get the tr from the table in the div
var trElem = div.getElementsByTagName(&quot;TR&quot;)[0];</description>
		<content:encoded><![CDATA[<p>Today&#8217;s hack is brought to us by Microsoft&#8217;s lunacy:</p>
<p>var innerHTML = &#8220;&lt;tr&gt;&lt;td&gt;Hello world!&lt;/td&gt;&lt;/tr&gt;&#8221;;</p>
<p>var div = document.createElement(&#8220;DIV&#8221;);</p>
<p>div.innerHTML = &#8220;&lt;table&gt;&#8221; + innerHTML + &#8220;&lt;/table&gt;&#8221;;</p>
<p>// Get the tr from the table in the div<br />
var trElem = div.getElementsByTagName(&#8220;TR&#8221;)[0];</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://ajaxian.com/archives/innerhtml-gotchas/comment-page-1#comment-1301</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/innerhtml-gotchas#comment-1301</guid>
		<description>Thanks for this forum! I&#039;ve been banging my head against the wall on these very same innerHTML/tables/css problems with IE6 for two weeks and this page has just now popped up in my Google searches. [So, I now know to go a different direction with my elegant new homegrown framework that planned on all MVC views to plug arbitrary HTML into &quot;hook&quot; tags via innerHTML. (sigh)]

Anybody know of any problems with trying to set the innerHTML of a tag that itself was defined dynamically via innerHTML?</description>
		<content:encoded><![CDATA[<p>Thanks for this forum! I&#8217;ve been banging my head against the wall on these very same innerHTML/tables/css problems with IE6 for two weeks and this page has just now popped up in my Google searches. [So, I now know to go a different direction with my elegant new homegrown framework that planned on all MVC views to plug arbitrary HTML into "hook" tags via innerHTML. (sigh)]</p>
<p>Anybody know of any problems with trying to set the innerHTML of a tag that itself was defined dynamically via innerHTML?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hakan Bilgin</title>
		<link>http://ajaxian.com/archives/innerhtml-gotchas/comment-page-1#comment-1302</link>
		<dc:creator>Hakan Bilgin</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/innerhtml-gotchas#comment-1302</guid>
		<description>It seems that many people are complaining on the traffic or the road but remeber that it&#039;s up the driver to find the ways.

Sometimes there are shortcuts and sometimes there aren&#039;t any, but there is also the good-practice factor. Appending child-elements of table with innerHTML or insertAdjacentHTML is bad practice, regardless browser.</description>
		<content:encoded><![CDATA[<p>It seems that many people are complaining on the traffic or the road but remeber that it&#8217;s up the driver to find the ways.</p>
<p>Sometimes there are shortcuts and sometimes there aren&#8217;t any, but there is also the good-practice factor. Appending child-elements of table with innerHTML or insertAdjacentHTML is bad practice, regardless browser.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: edward</title>
		<link>http://ajaxian.com/archives/innerhtml-gotchas/comment-page-1#comment-1303</link>
		<dc:creator>edward</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/innerhtml-gotchas#comment-1303</guid>
		<description>Hakan, what exactly is good practice if i wanted to create new rows on a table dynamically? (arrgh! this DOM thing is hard)</description>
		<content:encoded><![CDATA[<p>Hakan, what exactly is good practice if i wanted to create new rows on a table dynamically? (arrgh! this DOM thing is hard)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: edward</title>
		<link>http://ajaxian.com/archives/innerhtml-gotchas/comment-page-1#comment-1304</link>
		<dc:creator>edward</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/innerhtml-gotchas#comment-1304</guid>
		<description>This might help ...
http://www.mozilla.org/docs/dom/technote/tn-dom-table/#creating</description>
		<content:encoded><![CDATA[<p>This might help &#8230;<br />
<a href="http://www.mozilla.org/docs/dom/technote/tn-dom-table/#creating" rel="nofollow">http://www.mozilla.org/docs/dom/technote/tn-dom-table/#creating</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Chiu</title>
		<link>http://ajaxian.com/archives/innerhtml-gotchas/comment-page-1#comment-1305</link>
		<dc:creator>Paul Chiu</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/innerhtml-gotchas#comment-1305</guid>
		<description>I&#039;ve written a function based on Steve&#039;s code which basically creates a temporary table in the document and copys all its rows to the &quot;target&quot;. To use it simply call the ieTableInnerHTML(target, rowHTML) where target is the target table/tbody, and rowHTML is the tr code. Sorry for the poor formatting, I couldn&#039;t get linebreak working in the post.

--CODE START--

function ieTableInnerHTML(target, rowHTML) {
	/* Vars */
	target = $(target);

	/* Remove all existing rows */
	while (target.rows.length &gt; 0) {
		target.deleteRow(0);
	}

	/* Create temporary table */
	var tempDiv = document.createElement(&quot;div&quot;);
	document.body.appendChild(tempDiv);
	tempDiv.innerHTML = &#039;&lt;table id=&quot;tempTable&quot; style=&quot;display: none&quot;&gt;&#039; + rowHTML + &#039;&lt;/table&gt;&#039;;
	var tt = $(&quot;tempTable&quot;);

	/* Copy temporary table&#039;s rows to target */
	for (var i = 0; i &lt; tt.rows.length; i++) {
		target.appendChild(tt.rows[i].cloneNode(true));
	}

	/* Remove temporary table */
	Element.remove(tt);
}

--CODE END--</description>
		<content:encoded><![CDATA[<p>I&#8217;ve written a function based on Steve&#8217;s code which basically creates a temporary table in the document and copys all its rows to the &#8220;target&#8221;. To use it simply call the ieTableInnerHTML(target, rowHTML) where target is the target table/tbody, and rowHTML is the tr code. Sorry for the poor formatting, I couldn&#8217;t get linebreak working in the post.</p>
<p>&#8211;CODE START&#8211;</p>
<p>function ieTableInnerHTML(target, rowHTML) {<br />
	/* Vars */<br />
	target = $(target);</p>
<p>	/* Remove all existing rows */<br />
	while (target.rows.length &gt; 0) {<br />
		target.deleteRow(0);<br />
	}</p>
<p>	/* Create temporary table */<br />
	var tempDiv = document.createElement(&quot;div&quot;);<br />
	document.body.appendChild(tempDiv);<br />
	tempDiv.innerHTML = &#039;&lt;table id=&quot;tempTable&quot; style=&quot;display: none&quot;&gt;&#039; + rowHTML + &#039;&lt;/table&gt;&#039;;<br />
	var tt = $(&quot;tempTable&quot;);</p>
<p>	/* Copy temporary table&#039;s rows to target */<br />
	for (var i = 0; i &lt; tt.rows.length; i++) {<br />
		target.appendChild(tt.rows[i].cloneNode(true));<br />
	}</p>
<p>	/* Remove temporary table */<br />
	Element.remove(tt);<br />
}</p>
<p>&#8211;CODE END&#8211;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://ajaxian.com/archives/innerhtml-gotchas/comment-page-1#comment-1306</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/innerhtml-gotchas#comment-1306</guid>
		<description>Hello,

I didn&#039;t understand all the dollar symbols as shown above in Paul Chiu&#039;s script (I&#039;m not too advanced with javascript), but after slightly modifying it so it didn&#039;t delete the target tbody&#039;s existing rows it works fine in my application:

/* modified from http://www.ajaxian.com/archives/2005/10/innerhtml_gotch.html */
function tableInnerHTML(target, rowHTML) {
/* Removed - why delete them?!
while (target.rows.length &gt; 0) {
target.deleteRow(0);
} */
var tempDiv = document.createElement(&quot;div&quot;);
document.body.appendChild(tempDiv);
tempDiv.innerHTML = &#039;&#039; + rowHTML + &#039;&#039;;
var tt = document.getElementById(&quot;tempTable&quot;);
/* Copy temporary table&#039;s rows to target */
for (var i = 0; i &lt; tt.rows.length; i++) {
target.appendChild(tt.rows[i].cloneNode(true));
}
tt.parentNode.removeChild(tt);
}

Works on IE/Gecko windows. Thanks for your help.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I didn&#8217;t understand all the dollar symbols as shown above in Paul Chiu&#8217;s script (I&#8217;m not too advanced with javascript), but after slightly modifying it so it didn&#8217;t delete the target tbody&#8217;s existing rows it works fine in my application:</p>
<p>/* modified from <a href="http://www.ajaxian.com/archives/2005/10/innerhtml_gotch.html" rel="nofollow">http://www.ajaxian.com/archives/2005/10/innerhtml_gotch.html</a> */<br />
function tableInnerHTML(target, rowHTML) {<br />
/* Removed &#8211; why delete them?!<br />
while (target.rows.length > 0) {<br />
target.deleteRow(0);<br />
} */<br />
var tempDiv = document.createElement(&#8220;div&#8221;);<br />
document.body.appendChild(tempDiv);<br />
tempDiv.innerHTML = &#8221; + rowHTML + &#8221;;<br />
var tt = document.getElementById(&#8220;tempTable&#8221;);<br />
/* Copy temporary table&#8217;s rows to target */<br />
for (var i = 0; i &lt; tt.rows.length; i++) {<br />
target.appendChild(tt.rows[i].cloneNode(true));<br />
}<br />
tt.parentNode.removeChild(tt);<br />
}</p>
<p>Works on IE/Gecko windows. Thanks for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad Neuberg</title>
		<link>http://ajaxian.com/archives/innerhtml-gotchas/comment-page-1#comment-1307</link>
		<dc:creator>Brad Neuberg</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://test.ajaxian.com/archives/innerhtml-gotchas#comment-1307</guid>
		<description>If you have SCRIPT tags inside of the code you are adding to an innerHTML, it also won&#039;t run. Also, in some cases if the HTML is malformed in some way (can&#039;t remember exactly how), IE will crash. Gotta love IE and innerHTML. In general, I try not to innerHTML large amounts of complex HTML data in IE or you will have a world of pain. Keep it simple, keep it short.
</description>
		<content:encoded><![CDATA[<p>If you have SCRIPT tags inside of the code you are adding to an innerHTML, it also won&#8217;t run. Also, in some cases if the HTML is malformed in some way (can&#8217;t remember exactly how), IE will crash. Gotta love IE and innerHTML. In general, I try not to innerHTML large amounts of complex HTML data in IE or you will have a world of pain. Keep it simple, keep it short.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

