<?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: MooTools: Saving the dollars, replacing document.write</title>
	<atom:link href="http://ajaxian.com/archives/mootools-saving-the-dollars-replacing-documentwrite/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/mootools-saving-the-dollars-replacing-documentwrite</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: ricardobeat</title>
		<link>http://ajaxian.com/archives/mootools-saving-the-dollars-replacing-documentwrite/comment-page-1#comment-274140</link>
		<dc:creator>ricardobeat</dc:creator>
		<pubDate>Thu, 25 Jun 2009 08:03:22 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7004#comment-274140</guid>
		<description>@tbroyer while the case you presented holds true, there is no sensible reason to do something like that, specially considering that document.write should be gone in XHTML.</description>
		<content:encoded><![CDATA[<p>@tbroyer while the case you presented holds true, there is no sensible reason to do something like that, specially considering that document.write should be gone in XHTML.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anewton</title>
		<link>http://ajaxian.com/archives/mootools-saving-the-dollars-replacing-documentwrite/comment-page-1#comment-274134</link>
		<dc:creator>anewton</dc:creator>
		<pubDate>Wed, 24 Jun 2009 16:06:19 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7004#comment-274134</guid>
		<description>@ThomasHansen, I think the point of overwriting the doc.write method is for AFTER the document has loaded. If a script (for example, a widget that you didn&#039;t author) uses doc. write because it expects to be included at run time, and you append it to the DOM after page load, it would overwrite the whole page with its contents. Overwriting it this way allows you to prevent that.</description>
		<content:encoded><![CDATA[<p>@ThomasHansen, I think the point of overwriting the doc.write method is for AFTER the document has loaded. If a script (for example, a widget that you didn&#8217;t author) uses doc. write because it expects to be included at run time, and you append it to the DOM after page load, it would overwrite the whole page with its contents. Overwriting it this way allows you to prevent that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SubtleGradient</title>
		<link>http://ajaxian.com/archives/mootools-saving-the-dollars-replacing-documentwrite/comment-page-1#comment-274132</link>
		<dc:creator>SubtleGradient</dc:creator>
		<pubDate>Wed, 24 Jun 2009 14:18:45 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7004#comment-274132</guid>
		<description>Why would you combine these two completely unrelated stories?

In other news...

Eah I know my document.write replacement has limited utility. But it works great for some pretty specific things.</description>
		<content:encoded><![CDATA[<p>Why would you combine these two completely unrelated stories?</p>
<p>In other news&#8230;</p>
<p>Eah I know my document.write replacement has limited utility. But it works great for some pretty specific things.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tbroyer</title>
		<link>http://ajaxian.com/archives/mootools-saving-the-dollars-replacing-documentwrite/comment-page-1#comment-274130</link>
		<dc:creator>tbroyer</dc:creator>
		<pubDate>Wed, 24 Jun 2009 12:34:18 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7004#comment-274130</guid>
		<description>The big problem with replacing &lt;code&gt;document.write&lt;/code&gt; the way Thomas Aylott describes is that it breaks expectations. &lt;code&gt;document.write&lt;/code&gt; is &lt;em&gt;not&lt;/em&gt; equivalent to &lt;code&gt;innerHTML&lt;/code&gt;, it sends its argument to the currently running HTML parser, to be parsed as if it were actually in the page just after the &lt;code&gt;&lt;script&gt;&lt;/code&gt;. With the &lt;i&gt;regular&lt;/i&gt; &lt;code&gt;document.write&lt;/code&gt;, one can write:

&lt;code&gt;
&lt;script&gt;document.write(&quot;&lt;select&gt;&quot;);&lt;/script&gt;&lt;option&gt;A&lt;option&gt;B&lt;/select&gt;
&lt;/code&gt;

while this will obviously fail with the replaced version (leading to the options vanishing at parse time, and then an empty select box being added on DOM ready)</description>
		<content:encoded><![CDATA[<p>The big problem with replacing <code>document.write</code> the way Thomas Aylott describes is that it breaks expectations. <code>document.write</code> is <em>not</em> equivalent to <code>innerHTML</code>, it sends its argument to the currently running HTML parser, to be parsed as if it were actually in the page just after the <code>&lt;script&gt;</code>. With the <i>regular</i> <code>document.write</code>, one can write:</p>
<p><code><br />
&lt;script&gt;document.write("&lt;select&gt;");&lt;/script&gt;&lt;option&gt;A&lt;option&gt;B&lt;/select&gt;<br />
</code></p>
<p>while this will obviously fail with the replaced version (leading to the options vanishing at parse time, and then an empty select box being added on DOM ready)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ThomasHansen</title>
		<link>http://ajaxian.com/archives/mootools-saving-the-dollars-replacing-documentwrite/comment-page-1#comment-274128</link>
		<dc:creator>ThomasHansen</dc:creator>
		<pubDate>Wed, 24 Jun 2009 12:19:23 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=7004#comment-274128</guid>
		<description>We actually use &quot;Ra.$&quot; to avoid name-clashing in Ra. In fact everything we do is within the &quot;Ra namespace&quot;. Like &quot;Ra.klass&quot; (instead of Object.extend like prototype etc) and it really doesn&#039;t add that much of overhead, so I don&#039;t understand why not more Ajax Framework developers does this.
.
In fact part of the reason why we choice the &quot;Ra-Ajax&quot; name was because Ra was only two letters and would carry significantly less browser/JS/bandwidth overhead then e.g. &quot;Supercalifragilistic Ajax Framework&quot; would do ... ;)</description>
		<content:encoded><![CDATA[<p>We actually use &#8220;Ra.$&#8221; to avoid name-clashing in Ra. In fact everything we do is within the &#8220;Ra namespace&#8221;. Like &#8220;Ra.klass&#8221; (instead of Object.extend like prototype etc) and it really doesn&#8217;t add that much of overhead, so I don&#8217;t understand why not more Ajax Framework developers does this.<br />
.<br />
In fact part of the reason why we choice the &#8220;Ra-Ajax&#8221; name was because Ra was only two letters and would carry significantly less browser/JS/bandwidth overhead then e.g. &#8220;Supercalifragilistic Ajax Framework&#8221; would do &#8230; ;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

