<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rommel Santor&#039;s Clog &#187; ie8</title>
	<atom:link href="https://rommelsantor.com/clog/tag/ie8/feed/" rel="self" type="application/rss+xml" />
	<link>https://rommelsantor.com/clog</link>
	<description>my exploits and misadventures in programming</description>
	<lastBuildDate>Thu, 04 Feb 2016 12:56:01 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>IE8 Crash &#8211; Inline-Block Scroll with DOM Append</title>
		<link>https://rommelsantor.com/clog/2011/03/02/ie8-crash-inline-block-scroll-dom-append/</link>
		<comments>https://rommelsantor.com/clog/2011/03/02/ie8-crash-inline-block-scroll-dom-append/#comments</comments>
		<pubDate>Wed, 02 Mar 2011 09:15:35 +0000</pubDate>
		<dc:creator><![CDATA[rommel]]></dc:creator>
				<category><![CDATA[Bugs]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[dom]]></category>
		<category><![CDATA[ie8]]></category>
		<category><![CDATA[iesucks]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[scroll]]></category>

		<guid isPermaLink="false">http://rommelsantor.com/clog/?p=148</guid>
		<description><![CDATA[Was struggling for many hours today to figure out what has turned out to be a really stupid bug in IE8. In the hopes I can prevent even a single person from wasting their day like I have trying to figure out what is wrong with my code, I&#8217;ll explain below how the bug presents [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Was struggling for many hours today to figure out what has turned out to be a really stupid bug in IE8. In the hopes I can prevent even a single person from wasting their day like I have trying to figure out what is wrong with my code, I&#8217;ll explain below how the bug presents itself with examples.<span id="more-148"></span></p>
<p>I&#8217;m not 100% certain of every variable required to cause the bug, but it definitely works in this example:<br />
<a href="http://rommelsantor.com/iesucks/ie8-inlineblock-scroll-dom.php">IE8 crash</a></p>
<p>The general structure of the page is:<br />
<pre>
&lt;body&gt;
&lt;div id="outer" style="display:inline-block;overflow:auto;height:100px;"&gt;
  ... any multi-line content that forces the div to have a scrollbar ...
&lt;/div&gt;
&lt;/body&gt;
&lt;script&gt;
$("#outer").scroll(function(){
  $("&lt;div&gt;&lt;/div&gt;").appendTo("body");
});
&lt;/script&gt;
</pre></p>

<div style="float:left;margin:0 10px 10px 0">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7639656561235411";
/* Square (250x250) */
google_ad_slot = "8522038794";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>

<p>In that example &lt;body&gt; has only the one direct child element and if you scroll it causing the appendTo() function to be called, IE8 crashes. (I&#8217;ve only tested this on Windows 7 machines. IE7 does not crash.)</p>
<p><a href="http://rommelsantor.com/iesucks/ie8-inlineblock-scroll-dom-fixed.php">This is the same example</a>, but it works. The only difference is that a second &lt;div&gt; child was included within &lt;body&gt; but with that one change, the bug vanishes. Note that I&#8217;ve also tested this with multiple scrolling divs in body and the bug persists. It seems there <i>must</i> be at least one block element in &lt;body&gt; to prevent the bug.</p>
<p>Fortunately, it&#8217;s not often that one would create a page with just scrollable divs in the body.</p>
]]></content:encoded>
			<wfw:commentRss>https://rommelsantor.com/clog/2011/03/02/ie8-crash-inline-block-scroll-dom-append/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
