<?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"
	>
<channel>
	<title>Comments on: document.write() fix for (real) XHTML [v0.5.1]</title>
	<atom:link href="http://arapehlivanian.com/2006/05/12/documentwrite-fix-for-real-xhtml/feed/" rel="self" type="application/rss+xml" />
	<link>http://arapehlivanian.com/2006/05/12/documentwrite-fix-for-real-xhtml/</link>
	<description>Web Standards, Web Culture, Web Everything.™</description>
	<pubDate>Fri, 21 Nov 2008 06:31:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Ara Pehlivanian</title>
		<link>http://arapehlivanian.com/2006/05/12/documentwrite-fix-for-real-xhtml/#comment-26902</link>
		<dc:creator>Ara Pehlivanian</dc:creator>
		<pubDate>Wed, 10 Oct 2007 00:32:22 +0000</pubDate>
		<guid isPermaLink="false">http://arapehlivanian.com/2006/05/12/documentwrite-fix-for-real-xhtml/#comment-26902</guid>
		<description>&lt;strong&gt;Shaun&lt;/strong&gt;: Actually you don't have to look any farther than this site. I use it for AdSense among other things.</description>
		<content:encoded><![CDATA[<p><strong>Shaun</strong>: Actually you don&#8217;t have to look any farther than this site. I use it for AdSense among other things.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shaun</title>
		<link>http://arapehlivanian.com/2006/05/12/documentwrite-fix-for-real-xhtml/#comment-26895</link>
		<dc:creator>Shaun</dc:creator>
		<pubDate>Tue, 09 Oct 2007 23:28:48 +0000</pubDate>
		<guid isPermaLink="false">http://arapehlivanian.com/2006/05/12/documentwrite-fix-for-real-xhtml/#comment-26895</guid>
		<description>I'm looking to do somthing simular to this.  Kinda, maybe...  It's not really so much for XHTML but the work above seems to be a pretty close solution.  

I hope this not completly unrelated...

I have a couple other 3rd party scripts other then adsense that use document.write().   It would nice to be able to load any those on command at any given time *after the page loads.   Unfortunatly, relplacing nodes with .innerHTML doesn't invoke javascript and even if it did, document.write would just write over the entire page. 

So...  I see above that your overriding document.write, capturing the contents and using document.createElement() activate the overridden script right? I'm not 100% in javascript and your code is a little hard to follow for me, can you post up an example of this code in action?</description>
		<content:encoded><![CDATA[<p>I&#8217;m looking to do somthing simular to this.  Kinda, maybe&#8230;  It&#8217;s not really so much for XHTML but the work above seems to be a pretty close solution.  </p>
<p>I hope this not completly unrelated&#8230;</p>
<p>I have a couple other 3rd party scripts other then adsense that use document.write().   It would nice to be able to load any those on command at any given time *after the page loads.   Unfortunatly, relplacing nodes with .innerHTML doesn&#8217;t invoke javascript and even if it did, document.write would just write over the entire page. </p>
<p>So&#8230;  I see above that your overriding document.write, capturing the contents and using document.createElement() activate the overridden script right? I&#8217;m not 100% in javascript and your code is a little hard to follow for me, can you post up an example of this code in action?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ara Pehlivanian</title>
		<link>http://arapehlivanian.com/2006/05/12/documentwrite-fix-for-real-xhtml/#comment-17959</link>
		<dc:creator>Ara Pehlivanian</dc:creator>
		<pubDate>Fri, 20 Jul 2007 13:14:52 +0000</pubDate>
		<guid isPermaLink="false">http://arapehlivanian.com/2006/05/12/documentwrite-fix-for-real-xhtml/#comment-17959</guid>
		<description>&lt;strong&gt;David&lt;/strong&gt;: I don't see how he captures the 3rd party content... in his example he re-creates it. My script catches 3rd party content from multiple includes and puts them in the correct place (using a technique not too dissimilar to his).</description>
		<content:encoded><![CDATA[<p><strong>David</strong>: I don&#8217;t see how he captures the 3rd party content&#8230; in his example he re-creates it. My script catches 3rd party content from multiple includes and puts them in the correct place (using a technique not too dissimilar to his).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://arapehlivanian.com/2006/05/12/documentwrite-fix-for-real-xhtml/#comment-17955</link>
		<dc:creator>David</dc:creator>
		<pubDate>Fri, 20 Jul 2007 12:03:52 +0000</pubDate>
		<guid isPermaLink="false">http://arapehlivanian.com/2006/05/12/documentwrite-fix-for-real-xhtml/#comment-17955</guid>
		<description>SitePoint has an elegant and much simpler method than this &lt;a href="//www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/" rel="nofollow"&gt;here&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>SitePoint has an elegant and much simpler method than this <a href="//www.sitepoint.com/blogs/2007/07/11/insert-in-place-without-documentwrite/" rel="nofollow">here</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ara</title>
		<link>http://arapehlivanian.com/2006/05/12/documentwrite-fix-for-real-xhtml/#comment-223</link>
		<dc:creator>Ara</dc:creator>
		<pubDate>Fri, 12 May 2006 15:56:31 +0000</pubDate>
		<guid isPermaLink="false">http://arapehlivanian.com/2006/05/12/documentwrite-fix-for-real-xhtml/#comment-223</guid>
		<description>&lt;strong&gt;John&lt;/strong&gt;: I can understand the reasoning behind the use of document.write(), especially since the majority of your clientele will be using text/html. I was motivated to write this script because everything stopped working once I switched MIME types (including AdSense).

It would be neat to have alternate versions of your scripts for use in XHTML. I'd be willing to share some ideas I have on the subject if you'd like. (Maybe I'll write a follow up post on it).

And thanks for the bug fix!</description>
		<content:encoded><![CDATA[<p><strong>John</strong>: I can understand the reasoning behind the use of document.write(), especially since the majority of your clientele will be using text/html. I was motivated to write this script because everything stopped working once I switched MIME types (including AdSense).</p>
<p>It would be neat to have alternate versions of your scripts for use in XHTML. I&#8217;d be willing to share some ideas I have on the subject if you&#8217;d like. (Maybe I&#8217;ll write a follow up post on it).</p>
<p>And thanks for the bug fix!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Zeratsky</title>
		<link>http://arapehlivanian.com/2006/05/12/documentwrite-fix-for-real-xhtml/#comment-221</link>
		<dc:creator>John Zeratsky</dc:creator>
		<pubDate>Fri, 12 May 2006 15:11:09 +0000</pubDate>
		<guid isPermaLink="false">http://arapehlivanian.com/2006/05/12/documentwrite-fix-for-real-xhtml/#comment-221</guid>
		<description>Hey Ara, this is John from FeedBurner.

Cool post. We're aware of the limitations of document.write(), but we've decided to use it because it's so darn portable. That said, it's great to see what you've done here and we'll use this as a model for how to improve our code going forward.

And by the way, the missing semi-colon on the ellipsis character (# &#38; 8230 ) was a bug. We've fixed it and the change will go live later today.

Thanks again. Let me know if you have any additional questions.</description>
		<content:encoded><![CDATA[<p>Hey Ara, this is John from FeedBurner.</p>
<p>Cool post. We&#8217;re aware of the limitations of document.write(), but we&#8217;ve decided to use it because it&#8217;s so darn portable. That said, it&#8217;s great to see what you&#8217;ve done here and we&#8217;ll use this as a model for how to improve our code going forward.</p>
<p>And by the way, the missing semi-colon on the ellipsis character (# &amp; 8230 ) was a bug. We&#8217;ve fixed it and the change will go live later today.</p>
<p>Thanks again. Let me know if you have any additional questions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hacking the Technorati Badge part Deux &#124; ara pehlivanian&#8212;Web Standards, Web Culture, Web Everything.&#8482;</title>
		<link>http://arapehlivanian.com/2006/05/12/documentwrite-fix-for-real-xhtml/#comment-217</link>
		<dc:creator>Hacking the Technorati Badge part Deux &#124; ara pehlivanian&#8212;Web Standards, Web Culture, Web Everything.&#8482;</dc:creator>
		<pubDate>Fri, 12 May 2006 05:33:47 +0000</pubDate>
		<guid isPermaLink="false">http://arapehlivanian.com/2006/05/12/documentwrite-fix-for-real-xhtml/#comment-217</guid>
		<description>[...] The code below is out of date. For the latest version see document.write() fix for (real) XHTML In my previous post on Hacking the Technorati Badge I told the tale of how I managed to get it working with the application/xhtml+xml MIME type. Since then I tweaked the technique and managed to get rid of the extra &#60;script&#62; tag immediately preceding the XHTML element you want badge to appear in. I was able to do this by identifying the word &#8220;technorati&#8221; in the src attribute of the &#60;script&#62; tag and then inserting the contents of the badge immediately next to it. [...]</description>
		<content:encoded><![CDATA[<p>[...] The code below is out of date. For the latest version see document.write() fix for (real) XHTML In my previous post on Hacking the Technorati Badge I told the tale of how I managed to get it working with the application/xhtml+xml MIME type. Since then I tweaked the technique and managed to get rid of the extra &lt;script&gt; tag immediately preceding the XHTML element you want badge to appear in. I was able to do this by identifying the word &#8220;technorati&#8221; in the src attribute of the &lt;script&gt; tag and then inserting the contents of the badge immediately next to it. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
