<?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>Kommentarer til: Counting childnodes with JavaScript &#8211; The Whitespace Incident</title>
	<atom:link href="http://blog.tegneblokken.net/2009/08/counting-childnodes-with-javascript-the-whitespace-incident/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tegneblokken.net/2009/08/counting-childnodes-with-javascript-the-whitespace-incident/</link>
	<description>/ˈwɪziwɪg/</description>
	<lastBuildDate>Tue, 12 Oct 2010 21:55:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>Av: Daniel</title>
		<link>http://blog.tegneblokken.net/2009/08/counting-childnodes-with-javascript-the-whitespace-incident/comment-page-1/#comment-50</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Thu, 05 Nov 2009 17:55:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tegneblokken.net/?p=101#comment-50</guid>
		<description>@Codeventure
Your code will return all elements contained within the element with id=&quot;tabs&quot;. If you give every tab element id=&quot;tabs&quot; your code will fail, firstly because there can be only be one instance of any one id in a web page, secondly because the code will count every element contained within the first (or last, not quite sure at the moment) element with id=&quot;tabs&quot;.

Since you haven&#039;t linked to a code example I can&#039;t really give you any further assistance.</description>
		<content:encoded><![CDATA[<p>@Codeventure<br />
Your code will return all elements contained within the element with id=&#8221;tabs&#8221;. If you give every tab element id=&#8221;tabs&#8221; your code will fail, firstly because there can be only be one instance of any one id in a web page, secondly because the code will count every element contained within the first (or last, not quite sure at the moment) element with id=&#8221;tabs&#8221;.</p>
<p>Since you haven&#8217;t linked to a code example I can&#8217;t really give you any further assistance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Av: Codventure</title>
		<link>http://blog.tegneblokken.net/2009/08/counting-childnodes-with-javascript-the-whitespace-incident/comment-page-1/#comment-49</link>
		<dc:creator>Codventure</dc:creator>
		<pubDate>Thu, 05 Nov 2009 15:56:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tegneblokken.net/?p=101#comment-49</guid>
		<description>I have define   and define 8 tabs in the table and when i am counting childNodes from javascript document.getElementById(&#039;tabs&#039;).childNodes
it gives me only 1 tab, but there are 8 tabs. 
How to do?
&lt;a href=&quot;http://www.codventure.com&quot; rel=&quot;nofollow&quot;&gt;Codventure&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I have define   and define 8 tabs in the table and when i am counting childNodes from javascript document.getElementById(&#8216;tabs&#8217;).childNodes<br />
it gives me only 1 tab, but there are 8 tabs.<br />
How to do?<br />
<a href="http://www.codventure.com" rel="nofollow">Codventure</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Av: Daniel</title>
		<link>http://blog.tegneblokken.net/2009/08/counting-childnodes-with-javascript-the-whitespace-incident/comment-page-1/#comment-44</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Sat, 26 Sep 2009 09:02:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tegneblokken.net/?p=101#comment-44</guid>
		<description>@rav Nodetype 3 actually relates to all kinds of text, that is DOM elements that are not enclosed with tags. Firefox correctly interprets whitespace, line breaks and newlines as text elements, which sort of makes sense if you think about it. The first example on this page http://www.oracle.com/technology/pub/articles/wang-whitespace.html illustrates it quite well.

About the &lt;!, I&#039;m not quite sure if I understand what you mean. Is it a normal html comment tag, or something that Firefox adds to the mix?</description>
		<content:encoded><![CDATA[<p>@rav Nodetype 3 actually relates to all kinds of text, that is DOM elements that are not enclosed with tags. Firefox correctly interprets whitespace, line breaks and newlines as text elements, which sort of makes sense if you think about it. The first example on this page <a href="http://www.oracle.com/technology/pub/articles/wang-whitespace.html" rel="nofollow">http://www.oracle.com/technology/pub/articles/wang-whitespace.html</a> illustrates it quite well.</p>
<p>About the &lt;!, I&#8217;m not quite sure if I understand what you mean. Is it a normal html comment tag, or something that Firefox adds to the mix?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Av: rav</title>
		<link>http://blog.tegneblokken.net/2009/08/counting-childnodes-with-javascript-the-whitespace-incident/comment-page-1/#comment-43</link>
		<dc:creator>rav</dc:creator>
		<pubDate>Sat, 26 Sep 2009 07:25:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tegneblokken.net/?p=101#comment-43</guid>
		<description>thanks for this, i&#039;ve been searching around for an explanation of how firefox handles the dom tree.

however - i get a different error, which is that firefox somehow outputs &lt;! at the end of my list.

so im wondering, if nodetype 3 relates to whitespace, what about line breaks, and newlines etc?</description>
		<content:encoded><![CDATA[<p>thanks for this, i&#8217;ve been searching around for an explanation of how firefox handles the dom tree.</p>
<p>however &#8211; i get a different error, which is that firefox somehow outputs &lt;! at the end of my list.</p>
<p>so im wondering, if nodetype 3 relates to whitespace, what about line breaks, and newlines etc?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

