<?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: Hatin&#8217; on textContent and innerText</title>
	<atom:link href="http://dandean.com/category/code/2009/hatin-on-textcontent-and-innertext/feed/" rel="self" type="application/rss+xml" />
	<link>http://dandean.com/category/code/2009/hatin-on-textcontent-and-innertext/</link>
	<description></description>
	<lastBuildDate>Sat, 17 Jul 2010 17:07:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Dan Dean</title>
		<link>http://dandean.com/category/code/2009/hatin-on-textcontent-and-innertext/comment-page-1/#comment-3215</link>
		<dc:creator>Dan Dean</dc:creator>
		<pubDate>Fri, 30 Apr 2010 15:53:14 +0000</pubDate>
		<guid isPermaLink="false">http://dandean.com/?p=90#comment-3215</guid>
		<description>Glad you found it useful Kit!</description>
		<content:encoded><![CDATA[<p>Glad you found it useful Kit!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kit Menke</title>
		<link>http://dandean.com/category/code/2009/hatin-on-textcontent-and-innertext/comment-page-1/#comment-3214</link>
		<dc:creator>Kit Menke</dc:creator>
		<pubDate>Fri, 30 Apr 2010 15:21:41 +0000</pubDate>
		<guid isPermaLink="false">http://dandean.com/?p=90#comment-3214</guid>
		<description>The prototype version is exactly what I needed. Thanks!</description>
		<content:encoded><![CDATA[<p>The prototype version is exactly what I needed. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Dean</title>
		<link>http://dandean.com/category/code/2009/hatin-on-textcontent-and-innertext/comment-page-1/#comment-3199</link>
		<dc:creator>Dan Dean</dc:creator>
		<pubDate>Tue, 05 Jan 2010 19:05:56 +0000</pubDate>
		<guid isPermaLink="false">http://dandean.com/?p=90#comment-3199</guid>
		<description>@Jonah: That is nice and short. I think if I wrote this now I&#039;d have started with the ternary format as well. What I don&#039;t like about both of these, though, is the assumption that &lt;code&gt;innerText&lt;/code&gt; exists...</description>
		<content:encoded><![CDATA[<p>@Jonah: That is nice and short. I think if I wrote this now I&#8217;d have started with the ternary format as well. What I don&#8217;t like about both of these, though, is the assumption that <code>innerText</code> exists&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonah Dempcy</title>
		<link>http://dandean.com/category/code/2009/hatin-on-textcontent-and-innertext/comment-page-1/#comment-3198</link>
		<dc:creator>Jonah Dempcy</dc:creator>
		<pubDate>Tue, 05 Jan 2010 18:59:07 +0000</pubDate>
		<guid isPermaLink="false">http://dandean.com/?p=90#comment-3198</guid>
		<description>MooTools version:

&lt;pre&gt;
Element.prototype.getText = function() {
    return $defined(this.textContent) ? this.textContent : this.innerText;
};
&lt;/pre&gt;

Though in MooTools you can just call get(&#039;text&#039;) on an element.</description>
		<content:encoded><![CDATA[<p>MooTools version:</p>
<pre>
Element.prototype.getText = function() {
    return $defined(this.textContent) ? this.textContent : this.innerText;
};
</pre>
<p>Though in MooTools you can just call get(&#8216;text&#8217;) on an element.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Dean</title>
		<link>http://dandean.com/category/code/2009/hatin-on-textcontent-and-innertext/comment-page-1/#comment-3181</link>
		<dc:creator>Dan Dean</dc:creator>
		<pubDate>Fri, 07 Aug 2009 05:32:19 +0000</pubDate>
		<guid isPermaLink="false">http://dandean.com/?p=90#comment-3181</guid>
		<description>@seb: I finally got around to updating this snippet using &lt;code&gt;Object.isUndefined&lt;/code&gt;. Thanks again!</description>
		<content:encoded><![CDATA[<p>@seb: I finally got around to updating this snippet using <code>Object.isUndefined</code>. Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: itska</title>
		<link>http://dandean.com/category/code/2009/hatin-on-textcontent-and-innertext/comment-page-1/#comment-3180</link>
		<dc:creator>itska</dc:creator>
		<pubDate>Wed, 22 Jul 2009 17:52:01 +0000</pubDate>
		<guid isPermaLink="false">http://dandean.com/?p=90#comment-3180</guid>
		<description>shuffle shuffle whine whine</description>
		<content:encoded><![CDATA[<p>shuffle shuffle whine whine</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Dean</title>
		<link>http://dandean.com/category/code/2009/hatin-on-textcontent-and-innertext/comment-page-1/#comment-3178</link>
		<dc:creator>Dan Dean</dc:creator>
		<pubDate>Mon, 13 Jul 2009 16:45:44 +0000</pubDate>
		<guid isPermaLink="false">http://dandean.com/?p=90#comment-3178</guid>
		<description>@seb: Good point! I always forget to use those Object methods. I&#039;ll update my implementation.</description>
		<content:encoded><![CDATA[<p>@seb: Good point! I always forget to use those Object methods. I&#8217;ll update my implementation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: seb</title>
		<link>http://dandean.com/category/code/2009/hatin-on-textcontent-and-innertext/comment-page-1/#comment-3177</link>
		<dc:creator>seb</dc:creator>
		<pubDate>Mon, 13 Jul 2009 16:39:45 +0000</pubDate>
		<guid isPermaLink="false">http://dandean.com/?p=90#comment-3177</guid>
		<description>more prototype way :)

&lt;pre&gt;
getTextContent: function(element) {
  if (Object.isUndefined(element.textContent)) {
    return element.innerText;
  }
  return element.textContent;
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>more prototype way :)</p>
<pre>
getTextContent: function(element) {
  if (Object.isUndefined(element.textContent)) {
    return element.innerText;
  }
  return element.textContent;
}
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
