<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Out from under the carpet</title>
	<link>http://advanceddomscripting.com/2007/10/15/out-from-under-the-carpet/</link>
	<description>Dynamic Web Design Techniques</description>
	<pubDate>Fri, 04 Jul 2008 13:12:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: youngApprentice</title>
		<link>http://advanceddomscripting.com/2007/10/15/out-from-under-the-carpet/#comment-285</link>
		<dc:creator>youngApprentice</dc:creator>
		<pubDate>Sun, 16 Dec 2007 21:59:04 +0000</pubDate>
		<guid>http://advanceddomscripting.com/2007/10/15/out-from-under-the-carpet/#comment-285</guid>
		<description>&lt;p&gt;The innerHTML info would be great to have in a book titled Advanced DOM Scripting.;-) I'm kind of surprised it's not there.&lt;/p&gt;

&lt;p&gt;However, in passing around a "challenge" based off Emil's code, I saw many people thinking because they were using the paragraph element's innterHTML that they were simply adding to the end of the paragraph, thinking the span with the class of clickspan would simply keep its associated event.&lt;/p&gt;

&lt;p&gt;But aren't you actually replacing the element with the innerHTML in this case, with a span that looks exactly the same as the original? And the code doesn't reassign the onclick to it, so it kind of makes sense.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The innerHTML info would be great to have in a book titled Advanced DOM Scripting.;-) I&#8217;m kind of surprised it&#8217;s not there.</p>
<p>However, in passing around a &#8220;challenge&#8221; based off Emil&#8217;s code, I saw many people thinking because they were using the paragraph element&#8217;s innterHTML that they were simply adding to the end of the paragraph, thinking the span with the class of clickspan would simply keep its associated event.</p>
<p>But aren&#8217;t you actually replacing the element with the innerHTML in this case, with a span that looks exactly the same as the original? And the code doesn&#8217;t reassign the onclick to it, so it kind of makes sense.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
