<?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"
	>
<channel>
	<title>Comments on: Bug Day: Internet Explorer 7 SELECT element innerHTML bug</title>
	<atom:link href="http://alexle.net/archives/150/feed" rel="self" type="application/rss+xml" />
	<link>http://alexle.net/archives/150</link>
	<description>Personal View</description>
	<pubDate>Sat, 13 Mar 2010 17:59:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Maico Tamayo</title>
		<link>http://alexle.net/archives/150#comment-272211</link>
		<dc:creator>Maico Tamayo</dc:creator>
		<pubDate>Mon, 20 Jul 2009 17:15:33 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/150#comment-272211</guid>
		<description>I had a problem that had me going crazy for 2 days, I dynamically create a row() on the client side with a click event, the click event does not fire. I tried codes like (I use jquery by the way):

1.) $('#table tbody tr:last-child').append('..') 
2.) $('..') .insertAfter('#table tbody tr:last-child')
None of this works and so..

I looked at your comment to use innerHtml rather than the text:
so what I did is that recode it to..

var  htmlContent = $('#table tbody').html();
$('#table tbody').html( htmlContent + '..' );
This has worked. Thankfully. And the click event fires as it should be.

This just prove that I had to walk through a broken glass barefooted, in order for me to solve this problem.. Thanks to Mathew's hint by the way.

I never loosed a lot of hair before more than now. Thanks to IE</description>
		<content:encoded><![CDATA[<p>I had a problem that had me going crazy for 2 days, I dynamically create a row() on the client side with a click event, the click event does not fire. I tried codes like (I use jquery by the way):</p>
<p>1.) $(&#8217;#table tbody tr:last-child&#8217;).append(&#8217;..&#8217;)<br />
2.) $(&#8217;..&#8217;) .insertAfter(&#8217;#table tbody tr:last-child&#8217;)<br />
None of this works and so..</p>
<p>I looked at your comment to use innerHtml rather than the text:<br />
so what I did is that recode it to..</p>
<p>var  htmlContent = $(&#8217;#table tbody&#8217;).html();<br />
$(&#8217;#table tbody&#8217;).html( htmlContent + &#8216;..&#8217; );<br />
This has worked. Thankfully. And the click event fires as it should be.</p>
<p>This just prove that I had to walk through a broken glass barefooted, in order for me to solve this problem.. Thanks to Mathew&#8217;s hint by the way.</p>
<p>I never loosed a lot of hair before more than now. Thanks to IE</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew</title>
		<link>http://alexle.net/archives/150#comment-272106</link>
		<dc:creator>Matthew</dc:creator>
		<pubDate>Sat, 18 Jul 2009 21:56:07 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/150#comment-272106</guid>
		<description>It's both interesting how old these bugs are and how old this blog page is, because I'm using IE 8, and I ran into the  problem (and Microsoft's workaround page) yesterday.  What's really interesting about Microsoft's workaround page is that they recommend updating the options list programmatically instead of using innerHTML.  I think pretending like a workaround is the correct behavior is a pretty lame copout for a bug.</description>
		<content:encoded><![CDATA[<p>It&#8217;s both interesting how old these bugs are and how old this blog page is, because I&#8217;m using IE 8, and I ran into the  problem (and Microsoft&#8217;s workaround page) yesterday.  What&#8217;s really interesting about Microsoft&#8217;s workaround page is that they recommend updating the options list programmatically instead of using innerHTML.  I think pretending like a workaround is the correct behavior is a pretty lame copout for a bug.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Abernethy</title>
		<link>http://alexle.net/archives/150#comment-268620</link>
		<dc:creator>Greg Abernethy</dc:creator>
		<pubDate>Tue, 16 Jun 2009 01:26:02 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/150#comment-268620</guid>
		<description>Hi Alex

Thanks for the excellent tip, I could not work out what was wrong, as soon as I put .innerHTML instead of .text in the dynamically created select/options it worked.

Cheers
Greg Abernethy
Medusa Business Solutions
Wollongong, NSW, Australia</description>
		<content:encoded><![CDATA[<p>Hi Alex</p>
<p>Thanks for the excellent tip, I could not work out what was wrong, as soon as I put .innerHTML instead of .text in the dynamically created select/options it worked.</p>
<p>Cheers<br />
Greg Abernethy<br />
Medusa Business Solutions<br />
Wollongong, NSW, Australia</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Promised Bug Fixes &#171; Geek Ideas</title>
		<link>http://alexle.net/archives/150#comment-237982</link>
		<dc:creator>Promised Bug Fixes &#171; Geek Ideas</dc:creator>
		<pubDate>Sat, 20 Dec 2008 21:55:24 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/150#comment-237982</guid>
		<description>[...] because of its lack of support for writing to tables&#8217; innerHTML, and Microsoft refuses to fix it. When adding an entire list to the download basket, it takes the time to download and display [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] because of its lack of support for writing to tables&#8217; innerHTML, and Microsoft refuses to fix it. When adding an entire list to the download basket, it takes the time to download and display [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PneuncPrecext</title>
		<link>http://alexle.net/archives/150#comment-237862</link>
		<dc:creator>PneuncPrecext</dc:creator>
		<pubDate>Sat, 20 Dec 2008 05:13:11 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/150#comment-237862</guid>
		<description>Hello! simply super resource</description>
		<content:encoded><![CDATA[<p>Hello! simply super resource</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Eastgate</title>
		<link>http://alexle.net/archives/150#comment-230968</link>
		<dc:creator>Andrew Eastgate</dc:creator>
		<pubDate>Tue, 18 Nov 2008 15:31:28 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/150#comment-230968</guid>
		<description>Site ate my HTML :( But it's meant to be like this (using square brackets instead of arrow brackets):

if (document.getElementById("sectionSelector").outerHTML) {
	document.getElementById("sectionSelector").outerHTML = "[select id='sectionSelector']" + ajax.responseText + "[/select]";
} else {
	document.getElementById("sectionSelector").innerHTML = ajax.responseText;
}</description>
		<content:encoded><![CDATA[<p>Site ate my HTML <img src='http://alexle.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> But it&#8217;s meant to be like this (using square brackets instead of arrow brackets):</p>
<p>if (document.getElementById(&#8221;sectionSelector&#8221;).outerHTML) {<br />
	document.getElementById(&#8221;sectionSelector&#8221;).outerHTML = &#8220;[select id=&#8217;sectionSelector&#8217;]&#8221; + ajax.responseText + &#8220;[/select]&#8221;;<br />
} else {<br />
	document.getElementById(&#8221;sectionSelector&#8221;).innerHTML = ajax.responseText;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Eastgate</title>
		<link>http://alexle.net/archives/150#comment-230966</link>
		<dc:creator>Andrew Eastgate</dc:creator>
		<pubDate>Tue, 18 Nov 2008 15:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/150#comment-230966</guid>
		<description>I was having the same issue with the  in IE, my code is like this:

if (document.getElementById("sectionSelector").outerHTML) {
	document.getElementById("sectionSelector").outerHTML = "" + ajax.responseText + "";
} else {
	document.getElementById("sectionSelector").innerHTML = ajax.responseText;
}

Basically rewrite the whole  tag and the options (ajax.responseText in my script) if outerHTML is recognised by the browser, otherwise use the innerHTML method. Tested it and works for me in IE6, IE7, FF2, FF3, and Windows Safari.</description>
		<content:encoded><![CDATA[<p>I was having the same issue with the  in IE, my code is like this:</p>
<p>if (document.getElementById(&#8221;sectionSelector&#8221;).outerHTML) {<br />
	document.getElementById(&#8221;sectionSelector&#8221;).outerHTML = &#8220;&#8221; + ajax.responseText + &#8220;&#8221;;<br />
} else {<br />
	document.getElementById(&#8221;sectionSelector&#8221;).innerHTML = ajax.responseText;<br />
}</p>
<p>Basically rewrite the whole  tag and the options (ajax.responseText in my script) if outerHTML is recognised by the browser, otherwise use the innerHTML method. Tested it and works for me in IE6, IE7, FF2, FF3, and Windows Safari.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://alexle.net/archives/150#comment-228916</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Thu, 13 Nov 2008 00:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/150#comment-228916</guid>
		<description>IE has bigger problems with innerHTML than just the select element. Setting innerHTML with certain markup [valid] throws an unknown error.
http://web.2point1.com/2008/11/12/ie-innerhtml-bug/</description>
		<content:encoded><![CDATA[<p>IE has bigger problems with innerHTML than just the select element. Setting innerHTML with certain markup [valid] throws an unknown error.<br />
<a href="http://web.2point1.com/2008/11/12/ie-innerhtml-bug/" rel="nofollow">http://web.2point1.com/2008/11/12/ie-innerhtml-bug/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WeBlog - блог про веб-программирование &#187; Blog Archive &#187; баг в IE с innerHTML в select</title>
		<link>http://alexle.net/archives/150#comment-219423</link>
		<dc:creator>WeBlog - блог про веб-программирование &#187; Blog Archive &#187; баг в IE с innerHTML в select</dc:creator>
		<pubDate>Fri, 10 Oct 2008 11:22:18 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/150#comment-219423</guid>
		<description>[...] http://alexle.net/archives/150 [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] <a href="http://alexle.net/archives/150" rel="nofollow">http://alexle.net/archives/150</a> [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://alexle.net/archives/150#comment-190059</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Mon, 28 Jul 2008 21:19:25 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/150#comment-190059</guid>
		<description>You will find solutions to all your IE bugs here:

http://webbugtrack.blogspot.com/search/label/innerHTML

the Select element is only one of the elements in IE that doesn't work properly with the DOM methods.</description>
		<content:encoded><![CDATA[<p>You will find solutions to all your IE bugs here:</p>
<p><a href="http://webbugtrack.blogspot.com/search/label/innerHTML" rel="nofollow">http://webbugtrack.blogspot.com/search/label/innerHTML</a></p>
<p>the Select element is only one of the elements in IE that doesn&#8217;t work properly with the DOM methods.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.297 seconds -->
