<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>James Revillini &#187; html</title>
	<atom:link href="http://james.revillini.com/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://james.revillini.com</link>
	<description>Say 'no' to styrofoam.</description>
	<lastBuildDate>Sun, 25 Jul 2010 13:03:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Dynamically populate an element styled with white-space: pre</title>
		<link>http://james.revillini.com/2008/01/22/dynamically-populate-an-element-styled-with-white-space-pre/</link>
		<comments>http://james.revillini.com/2008/01/22/dynamically-populate-an-element-styled-with-white-space-pre/#comments</comments>
		<pubDate>Tue, 22 Jan 2008 16:08:08 +0000</pubDate>
		<dc:creator>james</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[dhtml]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://james.revillini.com/2008/01/22/dynamically-populate-an-element-styled-with-white-space-pre/</guid>
		<description><![CDATA[Assume: $ = document.getElementById; pre = $('pre-text-element'); //pre-text-element is the ID of my pre tag element You cannot use: $('element').innerHTML = 'line1\nline2'; //will not work in IE7 You must do this: e = $('element'); while(kid=e.firstChild) { e.removeChild(kid) } //remove all children in the e.appendChild('line1\nline2'); Lame, huh?]]></description>
			<content:encoded><![CDATA[<p>Assume:</p>
<pre>$ = document.getElementById;
pre = $('pre-text-element');  //pre-text-element is the ID of my pre tag element</pre>
<p>You cannot use:</p>
<pre>$('element').innerHTML = 'line1\nline2'; //will not work in IE7</pre>
<p>You must do this:</p>
<pre>e = $('element');
while(kid=e.firstChild) { e.removeChild(kid) }  //remove all children in the
e.appendChild('line1\nline2');</pre>
<p>Lame, huh?</p>
]]></content:encoded>
			<wfw:commentRss>http://james.revillini.com/2008/01/22/dynamically-populate-an-element-styled-with-white-space-pre/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
