<?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: When innerHTML isn&#8217;t Fast Enough</title>
	<atom:link href="http://blog.stevenlevithan.com/archives/faster-than-innerhtml/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.stevenlevithan.com/archives/faster-than-innerhtml</link>
	<description>A JavaScript and regular expression centric blog</description>
	<lastBuildDate>Thu, 09 Feb 2012 10:18:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: cymbaltaw</title>
		<link>http://blog.stevenlevithan.com/archives/faster-than-innerhtml/comment-page-2#comment-187428</link>
		<dc:creator>cymbaltaw</dc:creator>
		<pubDate>Thu, 09 Feb 2012 10:18:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/archives/faster-than-innerhtml#comment-187428</guid>
		<description>[b]Buy/Order Duloxetine  Saturday Delivery  [/b]                                  
[u]cymbalta dosage use [/u]                                                
[i]Today life gives you a chance to boost your sexual performance and take care of your health. [/i]</description>
		<content:encoded><![CDATA[<p>[b]Buy/Order Duloxetine  Saturday Delivery  [/b]<br />
[u]cymbalta dosage use [/u]<br />
[i]Today life gives you a chance to boost your sexual performance and take care of your health. [/i]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julien Kronegg</title>
		<link>http://blog.stevenlevithan.com/archives/faster-than-innerhtml/comment-page-2#comment-181778</link>
		<dc:creator>Julien Kronegg</dc:creator>
		<pubDate>Thu, 26 Jan 2012 12:39:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/archives/faster-than-innerhtml#comment-181778</guid>
		<description>Replacing the element may cause some problems since existing javascript objects may refer to the replaced object. This will cause two kind of problems because the old and new elements will be referenced: 1) incoherence 2) memory leak.

I prefer &lt;a href=&quot;http://www.bigdumbdev.com/2007/09/replacehtml-remove-insert-put-back-is.html&quot; rel=&quot;nofollow&quot;&gt;&quot;The Big Dump Developer&quot; solution&lt;/a&gt; which avoids the incoherence and memory leak.</description>
		<content:encoded><![CDATA[<p>Replacing the element may cause some problems since existing javascript objects may refer to the replaced object. This will cause two kind of problems because the old and new elements will be referenced: 1) incoherence 2) memory leak.</p>
<p>I prefer <a href="http://www.bigdumbdev.com/2007/09/replacehtml-remove-insert-put-back-is.html" rel="nofollow">&#8220;The Big Dump Developer&#8221; solution</a> which avoids the incoherence and memory leak.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tigres uanl y la mejor aficion del futbol mexicano</title>
		<link>http://blog.stevenlevithan.com/archives/faster-than-innerhtml/comment-page-2#comment-151616</link>
		<dc:creator>tigres uanl y la mejor aficion del futbol mexicano</dc:creator>
		<pubDate>Sat, 05 Nov 2011 03:59:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/archives/faster-than-innerhtml#comment-151616</guid>
		<description>What i do not realize is in reality how you&#039;re now not actually a lot more well-appreciated than you might be right now. You are so intelligent. You understand therefore significantly in terms of this topic, made me in my view imagine it from a lot of varied angles. Its like men and women aren&#039;t interested unless it is something to accomplish with Girl gaga! Your own stuffs excellent. Always take care of it up!</description>
		<content:encoded><![CDATA[<p>What i do not realize is in reality how you&#8217;re now not actually a lot more well-appreciated than you might be right now. You are so intelligent. You understand therefore significantly in terms of this topic, made me in my view imagine it from a lot of varied angles. Its like men and women aren&#8217;t interested unless it is something to accomplish with Girl gaga! Your own stuffs excellent. Always take care of it up!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 10 jQuery HTML Plugins &#124; jQuery4u</title>
		<link>http://blog.stevenlevithan.com/archives/faster-than-innerhtml/comment-page-2#comment-133001</link>
		<dc:creator>10 jQuery HTML Plugins &#124; jQuery4u</dc:creator>
		<pubDate>Mon, 05 Sep 2011 21:01:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/archives/faster-than-innerhtml#comment-133001</guid>
		<description>[...] This plug-in is a simple port based on Steven Levithan&#8217;s replaceHtml function, designed to speed up the native innerHTML Javascript assignment property and as a replacement for jQuery&#8217;s html() function.  Source [...]</description>
		<content:encoded><![CDATA[<p>[...] This plug-in is a simple port based on Steven Levithan&#8217;s replaceHtml function, designed to speed up the native innerHTML Javascript assignment property and as a replacement for jQuery&#8217;s html() function.  Source [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Beam</title>
		<link>http://blog.stevenlevithan.com/archives/faster-than-innerhtml/comment-page-2#comment-90169</link>
		<dc:creator>Dan Beam</dc:creator>
		<pubDate>Fri, 25 Mar 2011 20:42:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/archives/faster-than-innerhtml#comment-90169</guid>
		<description>By the way, this would be *even faster* if you simply assign the function once based on the conditional compilation being present or not, like so:

// for everybody except IE
function replaceHtml(el, html) {
	var oldEl = typeof el === &quot;string&quot; ? document.getElementById(el) : el;
	var newEl = oldEl.cloneNode(false);
	newEl.innerHTML = html;
	oldEl.parentNode.replaceChild(newEl, oldEl);
	/* Since we just removed the old element from the DOM, return a reference
	to the new element, which can be used to restore variable references. */
	return newEl;
};

// Pure innerHTML is slightly faster in IE, so change the function
/*@cc_on
function replaceHtml(el, html) {
	var oldEl = typeof el === &quot;string&quot; ? document.getElementById(el) : el;
	oldEl.innerHTML = html;
	return oldEl;
}
@*/

https://gist.github.com/887592 (in case my text is messed up)</description>
		<content:encoded><![CDATA[<p>By the way, this would be *even faster* if you simply assign the function once based on the conditional compilation being present or not, like so:</p>
<p>// for everybody except IE<br />
function replaceHtml(el, html) {<br />
	var oldEl = typeof el === &#8220;string&#8221; ? document.getElementById(el) : el;<br />
	var newEl = oldEl.cloneNode(false);<br />
	newEl.innerHTML = html;<br />
	oldEl.parentNode.replaceChild(newEl, oldEl);<br />
	/* Since we just removed the old element from the DOM, return a reference<br />
	to the new element, which can be used to restore variable references. */<br />
	return newEl;<br />
};</p>
<p>// Pure innerHTML is slightly faster in IE, so change the function<br />
/*@cc_on<br />
function replaceHtml(el, html) {<br />
	var oldEl = typeof el === &#8220;string&#8221; ? document.getElementById(el) : el;<br />
	oldEl.innerHTML = html;<br />
	return oldEl;<br />
}<br />
@*/</p>
<p><a href="https://gist.github.com/887592" rel="nofollow">https://gist.github.com/887592</a> (in case my text is messed up)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

