<?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>We Are Team Rubber &#187; validation</title>
	<atom:link href="http://www.teamrubber.com/blog/tag/validation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.teamrubber.com</link>
	<description>Team Rubber talks on the Internet in a blog</description>
	<lastBuildDate>Mon, 06 Feb 2012 15:12:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Google tracking failing XHTML validation</title>
		<link>http://www.teamrubber.com/blog/google-tracking-failing-xhtml-validation/</link>
		<comments>http://www.teamrubber.com/blog/google-tracking-failing-xhtml-validation/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 15:32:15 +0000</pubDate>
		<dc:creator>RobinG</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[tracking]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://www.teamrubber.com/blog/?p=943</guid>
		<description><![CDATA[Came across an interesting problem today, whilst creating a template for a new website, I noticed that the Google analytics tracking code was failing XHTML validation.]]></description>
			<content:encoded><![CDATA[
<p>Came across an interesting problem today, whilst creating a template for a new website, I noticed that the Google analytics tracking code was failing XHTML validation.</p>
<blockquote><p>&lt;script type=&#8221;text/javascript&#8221; language=&#8221;javascript&#8221;&gt;<br />
if(typeof(urchinTracker)!=&#8217;function&#8217;)document.write(&#8216;&lt;sc&#8217;+'ript src=&#8221;&#8216;+&#8217;http&#8217;+(document.location.protocol==&#8217;https:&#8217;?'s://ssl&#8217;:'://www&#8217;)+&#8217;.google-analytics.com/urchin.js&#8217;+'&#8221;&gt;&lt;&#8217;+'/sc&#8217;+'ript&gt;&#8217;)<br />
&lt;/script&gt;</p></blockquote>
<p>I later discovered that wrapping the script in CDATA tags allowed the script to parse and validate &#8211; happy days!</p>
<blockquote><p>&lt;script type=&#8221;text/javascript&#8221; language=&#8221;javascript&#8221;&gt;<br />
<strong>//&lt;![CDATA[</strong>if(typeof(urchinTracker)!='function')document.write('&lt;sc'+'ript src="'+'http'+(document.location.protocol=='https:'?'s://ssl':'://www')+'.google-analytics.com/urchin.js'+'"&gt;&lt;'+'/sc'+'ript&gt;')<strong>//]]&gt;</strong><br />
&lt;/script&gt;</p></blockquote>
<div class="topsy_widget_data topsy_theme_blue" style="float: left;margin-bottom: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.teamrubber.com%252Fblog%252Fgoogle-tracking-failing-xhtml-validation%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Google%20tracking%20failing%20XHTML%20validation%22%20%7D);"></div>

]]></content:encoded>
			<wfw:commentRss>http://www.teamrubber.com/blog/google-tracking-failing-xhtml-validation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

