<?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: IE DOM : WTF!</title>
	<atom:link href="http://joshhighland.com/blog/2006/10/03/ie-dom-wtf/feed/" rel="self" type="application/rss+xml" />
	<link>http://joshhighland.com/blog/2006/10/03/ie-dom-wtf/</link>
	<description>the living internet</description>
	<lastBuildDate>Thu, 19 Jan 2012 23:48:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Dwight Vietzke</title>
		<link>http://joshhighland.com/blog/2006/10/03/ie-dom-wtf/comment-page-1/#comment-60687</link>
		<dc:creator>Dwight Vietzke</dc:creator>
		<pubDate>Thu, 25 Nov 2010 04:30:56 +0000</pubDate>
		<guid isPermaLink="false">http://joshhighland.com/blog/2006/10/03/ie-dom-wtf/#comment-60687</guid>
		<description>Hi Josh,

Was looking for a similar answer, but ran into this problem too. Here is some code I use:

    this.create_node = function(name, url) {
	var node = null;

	if (&#039;js&#039; == dyn_load_obj.type) {
	    node = dojo.create(&#039;script&#039;);
	    var attrs = {
		id: name,
		type: &#039;text/javascript&#039;,
		src: url
	    };
	    dojo.attr(node, attrs);
	} else if (&#039;css&#039; == dyn_load_obj.type) {
	    node = dojo.create(&#039;link&#039;);
	    var attrs = {
		id: name,
		type: &#039;text/css&#039;,
		rel: &#039;stylesheet&#039;,
		media: &#039;all&#039;,
		href: url
	    };
	    dojo.attr(node, attrs);
	} else if (&#039;ico&#039; == dyn_load_obj.type) {
	    node = dojo.create(&#039;link&#039;);
	    var attrs = {
		id: name,
		type: &#039;image/x-icon&#039;,
		rel: &#039;shortcut icon&#039;,
		href: url
	    };
	    dojo.attr(node, attrs);
	  }
	return node;
    }

I use  the Dojo toolkit so you&#039;ll see ref&#039;s to it, but the idea is the same. Use a script to create a  element and then do something like this:

window.document.head = window.document.head &#124;&#124; window.document.getElementsByTagName(&#039;head&#039;)[0];
window.document.head.appendChild(node);

...to insert the code in the head section of the page.

This actually works in IE. The thing is, I was trying to find a way to get a work around for another problem with IE. When you try to use the above code on a popup window (from the orginal window) FF, Opera, Chrome...no problem. But of coarse IE won&#039;t do it, at least with my simple XP - IE8 setup. Some kind of bug left over from endless upgrading as best I could find Googling. God I hate Microsoft!</description>
		<content:encoded><![CDATA[<p>Hi Josh,</p>
<p>Was looking for a similar answer, but ran into this problem too. Here is some code I use:</p>
<p>    this.create_node = function(name, url) {<br />
	var node = null;</p>
<p>	if (&#8216;js&#8217; == dyn_load_obj.type) {<br />
	    node = dojo.create(&#8216;script&#8217;);<br />
	    var attrs = {<br />
		id: name,<br />
		type: &#8216;text/javascript&#8217;,<br />
		src: url<br />
	    };<br />
	    dojo.attr(node, attrs);<br />
	} else if (&#8216;css&#8217; == dyn_load_obj.type) {<br />
	    node = dojo.create(&#8216;link&#8217;);<br />
	    var attrs = {<br />
		id: name,<br />
		type: &#8216;text/css&#8217;,<br />
		rel: &#8216;stylesheet&#8217;,<br />
		media: &#8216;all&#8217;,<br />
		href: url<br />
	    };<br />
	    dojo.attr(node, attrs);<br />
	} else if (&#8216;ico&#8217; == dyn_load_obj.type) {<br />
	    node = dojo.create(&#8216;link&#8217;);<br />
	    var attrs = {<br />
		id: name,<br />
		type: &#8216;image/x-icon&#8217;,<br />
		rel: &#8216;shortcut icon&#8217;,<br />
		href: url<br />
	    };<br />
	    dojo.attr(node, attrs);<br />
	  }<br />
	return node;<br />
    }</p>
<p>I use  the Dojo toolkit so you&#8217;ll see ref&#8217;s to it, but the idea is the same. Use a script to create a  element and then do something like this:</p>
<p>window.document.head = window.document.head || window.document.getElementsByTagName(&#8216;head&#8217;)[0];<br />
window.document.head.appendChild(node);</p>
<p>&#8230;to insert the code in the head section of the page.</p>
<p>This actually works in IE. The thing is, I was trying to find a way to get a work around for another problem with IE. When you try to use the above code on a popup window (from the orginal window) FF, Opera, Chrome&#8230;no problem. But of coarse IE won&#8217;t do it, at least with my simple XP &#8211; IE8 setup. Some kind of bug left over from endless upgrading as best I could find Googling. God I hate Microsoft!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Atkinson</title>
		<link>http://joshhighland.com/blog/2006/10/03/ie-dom-wtf/comment-page-1/#comment-1255</link>
		<dc:creator>Andy Atkinson</dc:creator>
		<pubDate>Wed, 11 Oct 2006 16:11:10 +0000</pubDate>
		<guid isPermaLink="false">http://joshhighland.com/blog/2006/10/03/ie-dom-wtf/#comment-1255</guid>
		<description>Internet explorer developer toolbar

http://www.microsoft.com/downloads/details.aspx?FamilyID=E59C3964-672D-4511-BB3E-2D5E1DB91038&amp;displaylang=en</description>
		<content:encoded><![CDATA[<p>Internet explorer developer toolbar</p>
<p><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=E59C3964-672D-4511-BB3E-2D5E1DB91038&#038;displaylang=en" rel="nofollow">http://www.microsoft.com/downloads/details.aspx?FamilyID=E59C3964-672D-4511-BB3E-2D5E1DB91038&#038;displaylang=en</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Highland</title>
		<link>http://joshhighland.com/blog/2006/10/03/ie-dom-wtf/comment-page-1/#comment-1254</link>
		<dc:creator>Josh Highland</dc:creator>
		<pubDate>Wed, 04 Oct 2006 03:23:02 +0000</pubDate>
		<guid isPermaLink="false">http://joshhighland.com/blog/2006/10/03/ie-dom-wtf/#comment-1254</guid>
		<description>Yeah, the problem wasnt so much the debugger, but the problem with the javascript in IE. I usuually debug my JS using some extentions for firefox, but when it comes down to IE only bugs, I use visual studio 2003 most of the time</description>
		<content:encoded><![CDATA[<p>Yeah, the problem wasnt so much the debugger, but the problem with the javascript in IE. I usuually debug my JS using some extentions for firefox, but when it comes down to IE only bugs, I use visual studio 2003 most of the time</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Atkinson</title>
		<link>http://joshhighland.com/blog/2006/10/03/ie-dom-wtf/comment-page-1/#comment-1253</link>
		<dc:creator>Andy Atkinson</dc:creator>
		<pubDate>Wed, 04 Oct 2006 03:10:10 +0000</pubDate>
		<guid isPermaLink="false">http://joshhighland.com/blog/2006/10/03/ie-dom-wtf/#comment-1253</guid>
		<description>Supposedly there is a Microsoft debugger.  I haven&#039;t used it myself.
http://blogs.msdn.com/ie/archive/2004/10/26/247912.aspx

We use the Javascript Debugger extension at work, which is probably what you were using to debug.</description>
		<content:encoded><![CDATA[<p>Supposedly there is a Microsoft debugger.  I haven&#8217;t used it myself.<br />
<a href="http://blogs.msdn.com/ie/archive/2004/10/26/247912.aspx" rel="nofollow">http://blogs.msdn.com/ie/archive/2004/10/26/247912.aspx</a></p>
<p>We use the Javascript Debugger extension at work, which is probably what you were using to debug.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (Feed is rejected)
Page Caching using disk: enhanced
Database Caching 1/9 queries in 0.010 seconds using disk: basic
Object Caching 273/277 objects using disk: basic
Content Delivery Network via Amazon Web Services: S3: joshhighland.com.s3.amazonaws.com

Served from: joshhighland.com @ 2012-02-06 23:06:12 -->
