<?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>/dev/movabletripe &#187; Web Standards</title>
	<atom:link href="http://movabletripe.com/category/web-standards/feed/" rel="self" type="application/rss+xml" />
	<link>http://movabletripe.com</link>
	<description>Making up launch dates since 1982</description>
	<lastBuildDate>Mon, 27 Aug 2007 01:39:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Movabletripe now validates as HTML 3.2!</title>
		<link>http://movabletripe.com/archive/movabletripe-now-validates-as-html-32/</link>
		<comments>http://movabletripe.com/archive/movabletripe-now-validates-as-html-32/#comments</comments>
		<pubDate>Wed, 06 Apr 2005 10:04:05 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Web Standards]]></category>

		<guid isPermaLink="false">http://movabletripe.com/archive/movabletripe-now-validates-as-html-32/</guid>
		<description><![CDATA[Sure, this site&#8217;s doctype might say XHTML 1.0 Strict and validate as such, but as the more astute of you already know, that means SFA as far as your browser is concerned as long as the document is delivered as text/html. Make no mistake about it. Your browser will effectively render any page delivered as [...]]]></description>
			<content:encoded><![CDATA[<p>Sure, this site&#8217;s <a href="http://www.w3.org/QA/2002/04/valid-dtd-list.html" title="w3.org doctypes">doctype</a> might say <a href="http://www.w3.org/TR/xhtml1/" title="w3.org XHTML specs">XHTML 1.0 Strict</a> and <a href="http://validator.w3.org/check/referrer" title="w3.org validator (as if you didn't know)">validate</a> as such, but as the more astute of you already know, that means <abbr title="Sweet F**k All">SFA</abbr> as far as your browser is concerned as long as the document is delivered as <code>text/html</code>. Make no mistake about it. Your browser will effectively render any page delivered as <code>text/html</code> as <a href="http://en.wikipedia.org/wiki/Tag_Soup" title="Tag Soup">tag soup</a>; that is to say, the same way it would render <a href="http://www.w3.org/TR/REC-html32" title="w3.org HTML 3.2 specs">HTML 3.2</a>.</p>
<p>Admittedly, it will be the most semantic HTML 3.2 known to man, but unless your browser is delivered a Content-Type of <code>application/xhtml+xml</code>, it will not render the page any differently.</p>
<p><span id="more-31"></span></p>
<p>So what is this rant all about? Well I have been in the process of creating a Wordpress plugin which checks whether a user&#8217;s chosen browser accepts <code>application/xhtml+xml</code> and then delivers custom <a href="http://http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html" title="All about response headers">response headers</a> and a suitable doctype to match. The good news is that it works a treat. The bad news is that it does not work on my site. (Or more appropriately, my site does not work with it!) There are two major hurdles I encountered:</p>
<ol>
<li>Any whitespace before the XML declaration brings a page to a grinding hault</li>
<li>Most importanly, my javascript no longer works</li>
</ol>
<p>The whitespace issue was easily resolved, but the javascript problem has me scratching my head. I use javascript on this site for two purposes: for the comments preview, and the <a href="/links/" title="Stinky Links archives">Stinky Links</a> rollover titles. With my pages delivered as <code>application/xhtml+xml</code> neither of them work.</p>
<p>I realise it is nothing more than non-DOM-compliant <a href="http://en.wikipedia.org/wiki/ECMAScript" title="ECMAScript explained by the almighty wikipedia">ECMAScript</a> on my part, but to put it bluntly, stuffs me if I can get it to work without it. I know the comments preview relies on <code>.innerHTML</code>, but I can&#8217;t seem to be able to substitute it for any other code that will actually work the same. I have seen a few workarounds using <code>createElement()</code>, <code>createElementNS()</code> and <code>node.appendChild()</code>, but I have had little luck with these.</p>
<p>If anyone out there in <em>teh interweb</em> can help me out with this I would be very grateful. It is the only thing holding me back from XHTML 1.1 goodness.</p>
]]></content:encoded>
			<wfw:commentRss>http://movabletripe.com/archive/movabletripe-now-validates-as-html-32/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
