<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Obscure Internet Explorer Bugs: #1 of&#8230; who knows?</title>
	<link>http://www.nickfitz.co.uk/2005/05/17/obscure-internet-explorer-bugs-1-of-who-knows/</link>
	<description>Actively seeking a pithy tagline...</description>
	<pubDate>Wed, 15 Oct 2008 23:57:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.3</generator>

	<item>
		<title>by: zcorpan</title>
		<link>http://www.nickfitz.co.uk/2005/05/17/obscure-internet-explorer-bugs-1-of-who-knows/#comment-5</link>
		<pubDate>Wed, 08 Jun 2005 19:07:27 +0000</pubDate>
		<guid>http://www.nickfitz.co.uk/2005/05/17/obscure-internet-explorer-bugs-1-of-who-knows/#comment-5</guid>
					<description>Yep, any unknown tag is treated as an empty element by IE. I tried this:

&amp;#60;!DOCTYPE HTML&amp;#62;&amp;#60;HTML&amp;#62;&amp;#60;HEAD&amp;#62;&amp;#60;TITLE&amp;#62;&amp;#60;/TITLE&amp;#62;&amp;#60;/HEAD&amp;#62;&amp;#60;BODY&amp;#62;&amp;#60;P&amp;#62;&amp;#60;FOO&amp;#62;&amp;#60;/FOO&amp;#62;&amp;#60;/P&amp;#62;&amp;#60;/BODY&amp;#62;&amp;#60;/HTML&amp;#62;

...and then:

javascript:(function(){ var elms = document.getElementsByTagName(&quot;*&quot;), i = elms.length; while(i--){ alert(elms[i].tagName); }})()

It also seems to treat the DOCTYPE as an element, with a tagName of &quot;!&quot;. :)</description>
		<content:encoded><![CDATA[<p>Yep, any unknown tag is treated as an empty element by IE. I tried this:</p>
<p>&lt;!DOCTYPE HTML&gt;&lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;&lt;/TITLE&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;FOO&gt;&lt;/FOO&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</p>
<p>&#8230;and then:</p>
<p>javascript:(function(){ var elms = document.getElementsByTagName(&#8221;*&#8221;), i = elms.length; while(i&#8211;){ alert(elms[i].tagName); }})()</p>
<p>It also seems to treat the DOCTYPE as an element, with a tagName of &#8220;!&#8221;. :)
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
