<?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: Introducing HTML into an iframe and getting it back</title>
	<atom:link href="http://ajaxian.com/archives/introducing-html-into-an-iframe-and-getting-it-back/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/introducing-html-into-an-iframe-and-getting-it-back</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 18 Mar 2010 15:55:46 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: shadedecho</title>
		<link>http://ajaxian.com/archives/introducing-html-into-an-iframe-and-getting-it-back/comment-page-1#comment-266502</link>
		<dc:creator>shadedecho</dc:creator>
		<pubDate>Thu, 07 Aug 2008 15:27:24 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4024#comment-266502</guid>
		<description>I thought &quot;documentFragment&quot; was intended for, or at least useful for, such things.</description>
		<content:encoded><![CDATA[<p>I thought &#8220;documentFragment&#8221; was intended for, or at least useful for, such things.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jnthnlstr</title>
		<link>http://ajaxian.com/archives/introducing-html-into-an-iframe-and-getting-it-back/comment-page-1#comment-266498</link>
		<dc:creator>jnthnlstr</dc:creator>
		<pubDate>Thu, 07 Aug 2008 15:13:37 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4024#comment-266498</guid>
		<description>I can think of a few reasons why you would want to render an HTML string into an iframe:
1 - you can perform document.getElementById(id) and similar methods on the rendered document
1b - whilst browsers allow tags with the same ID in the same document, they shouldn&#039;t* and might not one day - rendering a document into a separate iframe allows you to manipulate its DOM whilst playing along with the standards
2 - the iframe behaves as a sandbox for CSS, so you don&#039;t risk upsetting your page&#039;s CSS when rendering the document
3 - if the page you&#039;re rendering has any document.write invocations in its JavaScript, they will overwrite your already-rendered page
4 - the document inside the iframe is a full HTML page, so has a DOCTYPE associated with it

* http://www.w3.org/TR/REC-html40/struct/global.html#h-7.5.2</description>
		<content:encoded><![CDATA[<p>I can think of a few reasons why you would want to render an HTML string into an iframe:<br />
1 &#8211; you can perform document.getElementById(id) and similar methods on the rendered document<br />
1b &#8211; whilst browsers allow tags with the same ID in the same document, they shouldn&#8217;t* and might not one day &#8211; rendering a document into a separate iframe allows you to manipulate its DOM whilst playing along with the standards<br />
2 &#8211; the iframe behaves as a sandbox for CSS, so you don&#8217;t risk upsetting your page&#8217;s CSS when rendering the document<br />
3 &#8211; if the page you&#8217;re rendering has any document.write invocations in its JavaScript, they will overwrite your already-rendered page<br />
4 &#8211; the document inside the iframe is a full HTML page, so has a DOCTYPE associated with it</p>
<p>* <a href="http://www.w3.org/TR/REC-html40/struct/global.html#h-7.5.2" rel="nofollow">http://www.w3.org/TR/REC-html40/struct/global.html#h-7.5.2</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AriesBelgium</title>
		<link>http://ajaxian.com/archives/introducing-html-into-an-iframe-and-getting-it-back/comment-page-1#comment-266465</link>
		<dc:creator>AriesBelgium</dc:creator>
		<pubDate>Wed, 06 Aug 2008 21:26:57 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4024#comment-266465</guid>
		<description>Hmm, Wordpress takes away the html instead of converting it to htmlchars.
http://pastebin.com/f5e4fc48e</description>
		<content:encoded><![CDATA[<p>Hmm, Wordpress takes away the html instead of converting it to htmlchars.<br />
<a href="http://pastebin.com/f5e4fc48e" rel="nofollow">http://pastebin.com/f5e4fc48e</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AriesBelgium</title>
		<link>http://ajaxian.com/archives/introducing-html-into-an-iframe-and-getting-it-back/comment-page-1#comment-266464</link>
		<dc:creator>AriesBelgium</dc:creator>
		<pubDate>Wed, 06 Aug 2008 21:24:10 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4024#comment-266464</guid>
		<description>Hmm, that&#039;s a lot of code for doing the same this as this:
&quot;
var container = document.createElement(&quot;DIV&quot;);
container.innerHTML = &quot;foobar&quot;;
var ul = container.firstChild;
&quot;</description>
		<content:encoded><![CDATA[<p>Hmm, that&#8217;s a lot of code for doing the same this as this:<br />
&#8221;<br />
var container = document.createElement(&#8221;DIV&#8221;);<br />
container.innerHTML = &#8220;foobar&#8221;;<br />
var ul = container.firstChild;<br />
&#8220;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jpsykes</title>
		<link>http://ajaxian.com/archives/introducing-html-into-an-iframe-and-getting-it-back/comment-page-1#comment-266462</link>
		<dc:creator>jpsykes</dc:creator>
		<pubDate>Wed, 06 Aug 2008 20:43:31 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4024#comment-266462</guid>
		<description>I think one of the things missing from the above description and the original page is why you would want to use this rather than writing the content to a DIV.</description>
		<content:encoded><![CDATA[<p>I think one of the things missing from the above description and the original page is why you would want to use this rather than writing the content to a DIV.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eyelidlessness</title>
		<link>http://ajaxian.com/archives/introducing-html-into-an-iframe-and-getting-it-back/comment-page-1#comment-266461</link>
		<dc:creator>eyelidlessness</dc:creator>
		<pubDate>Wed, 06 Aug 2008 20:18:08 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4024#comment-266461</guid>
		<description>More than being simple and standard DOM, one wonders why it&#039;s promoting such a weird way of writing content to the frame rather than using standard DOM operations there too.</description>
		<content:encoded><![CDATA[<p>More than being simple and standard DOM, one wonders why it&#8217;s promoting such a weird way of writing content to the frame rather than using standard DOM operations there too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JrHames</title>
		<link>http://ajaxian.com/archives/introducing-html-into-an-iframe-and-getting-it-back/comment-page-1#comment-266460</link>
		<dc:creator>JrHames</dc:creator>
		<pubDate>Wed, 06 Aug 2008 20:00:04 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=4024#comment-266460</guid>
		<description>This is really old and there is no trick. Just simple and standard DOM.</description>
		<content:encoded><![CDATA[<p>This is really old and there is no trick. Just simple and standard DOM.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
