<?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: document.write and xhtml</title>
	<atom:link href="http://ajaxian.com/archives/documentwrite-and-xhtml/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/documentwrite-and-xhtml</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 09 Feb 2012 06:55:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: westonruter</title>
		<link>http://ajaxian.com/archives/documentwrite-and-xhtml/comment-page-1#comment-264156</link>
		<dc:creator>westonruter</dc:creator>
		<pubDate>Wed, 28 May 2008 22:07:48 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/documentwrite-and-xhtml#comment-264156</guid>
		<description>document.write() support for XHTML: http://weston.ruter.net/projects/xhtml-document-write/</description>
		<content:encoded><![CDATA[<p>document.write() support for XHTML: <a href="http://weston.ruter.net/projects/xhtml-document-write/" rel="nofollow">http://weston.ruter.net/projects/xhtml-document-write/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ross Johnson</title>
		<link>http://ajaxian.com/archives/documentwrite-and-xhtml/comment-page-1#comment-255328</link>
		<dc:creator>Ross Johnson</dc:creator>
		<pubDate>Tue, 11 Sep 2007 21:53:54 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/documentwrite-and-xhtml#comment-255328</guid>
		<description>there is no document.body in xhtml?</description>
		<content:encoded><![CDATA[<p>there is no document.body in xhtml?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Programming in the State of 70% Drunkeness</title>
		<link>http://ajaxian.com/archives/documentwrite-and-xhtml/comment-page-1#comment-182519</link>
		<dc:creator>Programming in the State of 70% Drunkeness</dc:creator>
		<pubDate>Tue, 14 Nov 2006 01:36:09 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/documentwrite-and-xhtml#comment-182519</guid>
		<description>&lt;strong&gt;document.write and xhtml&lt;/strong&gt;

what if we give the script tag an id and drill it down from the document then append?
I will use JSON for this so that it is universal to all browsers and doc types.
For example:
var AdSense;
 //this one return an object that has a method that does the...</description>
		<content:encoded><![CDATA[<p><strong>document.write and xhtml</strong></p>
<p>what if we give the script tag an id and drill it down from the document then append?<br />
I will use JSON for this so that it is universal to all browsers and doc types.<br />
For example:<br />
var AdSense;<br />
 //this one return an object that has a method that does the&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Resig</title>
		<link>http://ajaxian.com/archives/documentwrite-and-xhtml/comment-page-1#comment-179984</link>
		<dc:creator>John Resig</dc:creator>
		<pubDate>Sun, 12 Nov 2006 20:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/documentwrite-and-xhtml#comment-179984</guid>
		<description>&lt;strong&gt;XHTML, document.write, and Adsense&lt;/strong&gt;

After some recent discussion concerning the use of document.write() in XHTML documents served with the doctype &quot;application/xhtml+xml&quot; I decided to revisit the problem. An issue with the solutions proposed by Sam and Ajaxian is that they aren&#039;t real...</description>
		<content:encoded><![CDATA[<p><strong>XHTML, document.write, and Adsense</strong></p>
<p>After some recent discussion concerning the use of document.write() in XHTML documents served with the doctype &#8220;application/xhtml+xml&#8221; I decided to revisit the problem. An issue with the solutions proposed by Sam and Ajaxian is that they aren&#8217;t real&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas Kalsch</title>
		<link>http://ajaxian.com/archives/documentwrite-and-xhtml/comment-page-1#comment-179774</link>
		<dc:creator>Andreas Kalsch</dc:creator>
		<pubDate>Sun, 12 Nov 2006 17:59:20 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/documentwrite-and-xhtml#comment-179774</guid>
		<description>I talk about including a JS script by document.write, e.g.

document.write(&#039;&#039;);</description>
		<content:encoded><![CDATA[<p>I talk about including a JS script by document.write, e.g.</p>
<p>document.write(&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas Kalsch</title>
		<link>http://ajaxian.com/archives/documentwrite-and-xhtml/comment-page-1#comment-179610</link>
		<dc:creator>Andreas Kalsch</dc:creator>
		<pubDate>Sun, 12 Nov 2006 16:02:51 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/documentwrite-and-xhtml#comment-179610</guid>
		<description>@ Mark,

this is what I tried out yesterday, too ;) But it doesn&#039;t work as well as &quot;native&quot; document write. If you include a js file, the content is not executed. E.g. an alert(1) is made in native mode, but not in all browsers for overwritten version of document.write. I will work meticulously.

Andi</description>
		<content:encoded><![CDATA[<p>@ Mark,</p>
<p>this is what I tried out yesterday, too ;) But it doesn&#8217;t work as well as &#8220;native&#8221; document write. If you include a js file, the content is not executed. E.g. an alert(1) is made in native mode, but not in all browsers for overwritten version of document.write. I will work meticulously.</p>
<p>Andi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Brooks</title>
		<link>http://ajaxian.com/archives/documentwrite-and-xhtml/comment-page-1#comment-178497</link>
		<dc:creator>Ryan Brooks</dc:creator>
		<pubDate>Sun, 12 Nov 2006 03:15:07 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/documentwrite-and-xhtml#comment-178497</guid>
		<description>Hawt! Gotta remember this one.</description>
		<content:encoded><![CDATA[<p>Hawt! Gotta remember this one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dominic Mitchell</title>
		<link>http://ajaxian.com/archives/documentwrite-and-xhtml/comment-page-1#comment-177634</link>
		<dc:creator>Dominic Mitchell</dc:creator>
		<pubDate>Sat, 11 Nov 2006 17:07:27 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/documentwrite-and-xhtml#comment-177634</guid>
		<description>In XHTML, there is no &lt;code&gt;document.body&lt;/code&gt;...</description>
		<content:encoded><![CDATA[<p>In XHTML, there is no <code>document.body</code>&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Kahn</title>
		<link>http://ajaxian.com/archives/documentwrite-and-xhtml/comment-page-1#comment-177624</link>
		<dc:creator>Mark Kahn</dc:creator>
		<pubDate>Sat, 11 Nov 2006 17:03:07 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/documentwrite-and-xhtml#comment-177624</guid>
		<description>What about just doing this (or something similiar)?

document.write = function(e){
	var span = document.createElement(&#039;SPAN&#039;);
	span.innerHTML = e;
	document.body.appendChild(span);
}</description>
		<content:encoded><![CDATA[<p>What about just doing this (or something similiar)?</p>
<p>document.write = function(e){<br />
	var span = document.createElement(&#8216;SPAN&#8217;);<br />
	span.innerHTML = e;<br />
	document.body.appendChild(span);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Ruby</title>
		<link>http://ajaxian.com/archives/documentwrite-and-xhtml/comment-page-1#comment-177322</link>
		<dc:creator>Sam Ruby</dc:creator>
		<pubDate>Sat, 11 Nov 2006 14:31:21 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/documentwrite-and-xhtml#comment-177322</guid>
		<description>Only in the case where both the enclosing document and string are separately well formed.  As &lt;a href=&quot;http://ln.hixie.ch/?start=1091626816&amp;count=1&quot; rel=&quot;nofollow&quot;&gt;Ian points out&lt;/a&gt;, that&#039;s not necessarily always the case, but not supporting document.write at all simply because you might start a tag outside the script and close it inside the script is like saying that you won&#039;t support division because the denominator might be zero.</description>
		<content:encoded><![CDATA[<p>Only in the case where both the enclosing document and string are separately well formed.  As <a href="http://ln.hixie.ch/?start=1091626816&amp;count=1" rel="nofollow">Ian points out</a>, that&#8217;s not necessarily always the case, but not supporting document.write at all simply because you might start a tag outside the script and close it inside the script is like saying that you won&#8217;t support division because the denominator might be zero.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonardo Priori</title>
		<link>http://ajaxian.com/archives/documentwrite-and-xhtml/comment-page-1#comment-177307</link>
		<dc:creator>Leonardo Priori</dc:creator>
		<pubDate>Sat, 11 Nov 2006 14:21:04 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/documentwrite-and-xhtml#comment-177307</guid>
		<description>crazy!</description>
		<content:encoded><![CDATA[<p>crazy!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

