<?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>Valimar Design &#187; XML</title>
	<atom:link href="http://valimardesign.com/category/g-web-design/xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://valimardesign.com</link>
	<description>A blog about HTML, XML, XHTML, CSS, Javascript, and more!</description>
	<lastBuildDate>Mon, 06 Sep 2010 16:44:14 +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>Warnings Against XHTML</title>
		<link>http://valimardesign.com/2009/10/warnings-against-xhtml/</link>
		<comments>http://valimardesign.com/2009/10/warnings-against-xhtml/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 04:39:52 +0000</pubDate>
		<dc:creator>Chaos</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[w3c]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://dev.valimardesign.com/?p=276</guid>
		<description><![CDATA[First, the Links Beware of XHTML &#8211; quite a few years ago, this article had appeared on this well-designed site that serves XHTML to browsers such as Firefox and HTML 4.01 Strict to Internet Explorer. This article on XHTML outlined &#8230; <a href="http://valimardesign.com/2009/10/warnings-against-xhtml/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3 class="titlebg">First, the Links</h3>
<div class="windowbg">
<ul class="li-none">
<li><a href="http://www.webdevout.net/articles/beware-of-xhtml">Beware of XHTML</a> &#8211; quite a few years ago, this article had appeared on this well-designed site that serves XHTML to browsers such as Firefox and HTML 4.01 Strict to Internet Explorer. This article on XHTML outlined the multiple problems with implementing XHTML, how its usefulness declines in real-world practice, and how the advantages are clearly outweighed by the disadvantages. This is a very good read!</li>
<li><a href="http://www.webdevout.net/articles/beware-of-xhtml">The article that started it all</a>, <em>Beware of XHTML</em> covered topics on XHTML such as the complexities within Content-Type and Content Negotiation, the problems with Internet Explorer that likely will never be fixed with XHTML, poor performance of Firefox on pages with the <em>content-type</em> of <em>application/xhtml+xml</em>, and the <span class="bold">fact</span> that XHTML is <em>not</em> more valid or semantic than HTML 4.01 Strict.</li>
</ul>
</div>
<h3 class="titlebg">A Pain in the Butt</h3>
<div class="windowbg">
<p>XHTML 1.0 Strict is the standard I&#8217;ve used in web pages for a long, long time. However, I don&#8217;t do it the right way. In Firefox I could serve it up as application/xhtml+xml but this site along with the main site are test sites, and I haven&#8217;t advertised it much. In IE I could serve it up as text/html as I already do, but I&#8217;d have to use xml:output with XSLT to output the markup as standard HTML 4.01 Strict and at the moment, I don&#8217;t feel like it. The sites are new, don&#8217;t have enough members, and definitely not enough activity. It&#8217;s a wasteland in fact!</p>
<p>The fact is, why have to serve it as application/xhtml+xml? Most people do not want to do content negotiation, and why should you if all you&#8217;re making is a small web page, blog, or forum? With HTML 4.01 Strict, everything still works the same. Sure you can&#8217;t use the XML features, but most XML features such as MathML aren&#8217;t supported by most browsers in any useful way anyways! The jQuery, Mootools, whatever library you use for Javascript will still work the same, so why should it matter? Well, first we need to examine XHTML&#8217;s advantages.</p>
</div>
<h3 class="titlebg">Advantages of XHTML</h3>
<div class="windowbg2">
<p><strong>Original link</strong>: <a href="http://www.webrichtlijnen.nl/english/manual/development/production/webstandards/xhtml1-0/pros-and-cons/">Advantages and Disadvantages of XHTML</a>.</p>
<p>As you can see by the link above, the advantages of XHTML include being able to use XML web applications (if you use AJAX on even HTML, you&#8217;re still using XML in some way), SVG and MathML can be used in XHTML (yet almost nothing supports them), being able to convert a page into a PDF, RSS, or RFT file, and the last advantage listed is just moot to me.</p>
<p>The major advantage I see with XHTML is just that it&#8217;s the new big thing. HTML was developed in the early 90&#8242;s, and got a lot more attention in the mid-90&#8242;s with the release of Internet Explorer, which supported HTML 2. XHTML was developed in 1999 and was supplemented sometime in 2002 with XHTML 1.1, the XML Module flavor of XHTML. A lot of people got on the bandwagon, including myself. It was the newest greatest thing. It was the IPod of markup styles. If your site validated perfectly under XHTML 1.0 Strict, this somehow meant that you had potential. But I found that productivity became limited by wasting a lot of time marking everything up to a new standard. I found that the price was too big for what I was getting out of it. But I stick with it now that I know for the most part how to use it. Obviously we&#8217;re going into the disadvantages now.</p>
</div>
<h3 class="titlebg">Disadvantages of XHTML</h3>
<div class="windowbg">
<p>Quoting the link again, the only-listed disadvantage of XHTML is its &#8220;limited practical use.&#8221; However, this is a BIG disadvantage. Internet Explorer didn&#8217;t support CSS 2 very well until IE8 came out &#8211; and this wasn&#8217;t long ago &#8211; in early 2009. But it still doesn&#8217;t support XHTML fully. The &#8220;application/xhtml+xml&#8221; content-type still breaks, thus if you serve XHTML with the right content-type, IE users will suffer. But if you serve XHTML with the &#8220;text/html&#8221; content-type, you&#8217;ll suffer because you aren&#8217;t using XHTML correctly. The standard is broken if you serve XHTML and plain HTML.</p>
<p>The lack of productivity I mentioned was that it takes time to get your markup to work properly and still be functional. Adding an XML prologue is necessary, yet once again, IE doesn&#8217;t accept anything before the document type declaration and thus will render the page in Quirks Mode, which means your page will look noticeably different.</p>
</div>
<h3 class="titlebg">But it&#8217;s more &#8220;Strict&#8221;!</h3>
<div class="windowbg">
<p>&#8220;Strict&#8221; as compared to what? The document type that you use doesn&#8217;t come with the strictness guaranteed. You can still mess up by putting obsolete elements in your document. You can still mess up by mismatching tags. You can still mess up by not quoting attributes. You can still mess up through a simple and mundane typographical error. XHTML is not strict, not any more than HTML 2 was!!! The use of the standard is either strict or not strict. That&#8217;s up to the developer or designer. HTML 2 had rules. HTML 3 had rules. HTML 4.01 Strict had rules. So did XHTML, and XHTML 1.1. So does XML and CSS. So does Javascript. Need I go on? Just because a particular specification implies more strict rules doesn&#8217;t mean that this is what you&#8217;ll end up with! I&#8217;ve seen MANY XHTML 1.0 Transitional pages that wouldn&#8217;t even make valid HTML 4.01 Transitional documents!</p>
<p>&#8220;Strict&#8221; and &#8220;Compliant&#8221; are just two more of these &#8220;keywords&#8221; designed to make it sound like you know what you&#8217;re talking about. Like &#8220;pro-active&#8221;, &#8220;be positive&#8221;, &#8220;deprecated&#8221;, &#8220;obsolescence&#8221;, &#8220;quantum singularity&#8221;, &#8220;warp core breach&#8221;, and &#8220;1337&#8243;. Knowing how to spell and pronounce the word doesn&#8217;t mean that you understand it. It just means that the easily-impressed will think that you do without questioning your logic, which is very common in nations like&#8230;mmmm&#8230;politics&#8230;never mind.</p>
<p>XHTML does have firmer rules, though. It does <em>promote</em> compliance and better standards, but someone who isn&#8217;t willing to validate their website to stick to the standard should just stick with HTML 4.01 Transitional or Strict. XHTML served with the content-type of &#8220;application/xhtml+xml&#8221; is not to be written by the amateur web developer or author or designer. It really is hard-core. If you misquote just one attribute, the page will not display and instead be replaced by the <strong>XML well-formedness error</strong>. And even if you do get your website all shiny and coated with XML&#8217;s juice of epic win, it will just prove that you have too much time on your hands, or it will just mean that Internet Explorer won&#8217;t be able to use it. If you use content negotiation, and do so the wrong way, you&#8217;re putting a lot of overhead on the server-side processing and slowing down the page on the client side as well. Say your site has a forum on it, and you serve everything as application/xhtml+xml except in the case of Internet Explorer. And say someone makes a forum post that somehow compromises the XML well-formedness of that topic&#8217;s page. You&#8217;re screwed! But those viewing it with Internet Explorer will have no problem at all!</p>
<p>If everything isn&#8217;t right, and I mean everything, XHTML 1.0 Strict or 1.1 plus the content-type of &#8220;application/xhtml+xml&#8221; will be a big all-you-can-eat buffet of fail.</p>
</div>
<h3 class="titlebg">Good Intentions, and Moving Onward</h3>
<div class="windowbg">
<p>The XHTML family of hypertext markup has been quite successful for many pages out there, including <a href="http://www.csszengarden.com/">CSS Zen Garden</a>, which itself serves XHTML 1.0 Strict as text/html. There are many &#8216;valid&#8217; XHTML sites out there, yet a small fraction of a percent are actually being served as XHTML &#8211; not XHTML tag soup served in text/html. &#8220;Stricter&#8221; rules still don&#8217;t mean that abuse won&#8217;t occur. HTML 5 is the newest flavor of HTML &#8211; the first we&#8217;ve seen in a long time since HTML 4.01. It comes in its own two flavors &#8211; one called HTML 5, logically-so, and another called XHTML5 (which I call HTML5+XML as the former name is just misleading and confusing). Even HTML 5 introduces some idiosyncrasies such as having a header tag instead of just using h like XHTML 2.0 was going to do. If they need to add a new element, why not add one that uses one character, like the paragraph (p) tag does? Not only that, but numbered headers can be <span class="bold">nested</span> within the &#8216;header&#8217; element, meaning that you get two elements for the price of one &#8211; just great, more <abbr title="Document Object Model">DOM</abbr> processing.</p>
<p>The W3C along with all organizations initially have their good intentions, that as they grow from there, end up getting skewed into things they should not have become. Initially, SVG and MathML sounded like great ideas. But the bottom line is that there&#8217;s hardly anything that supports them. XHTML 2.0 seemed to be a logical evolution because it was a new specification that, through its lack of backward-compatibility, would begin a new line of web authoring based on better semantics and more sensible elements and attributes. HTML 5 added its own array of elements, sharing one in particular with XHTML 2.0 &#8211; the &#8216;section&#8217; element. However, at this time, only HTML 5 is supported, XHTML 2.0 is dead, the working groups have merged, and there are still few browsers that support HTML 5. Internet Explorer doesn&#8217;t support some of the new sectional tags that were introduced in HTML 5, and this comes as no surprise &#8211; not because Internet Explorer is SO inferior, but because Microsoft only accepts a standard into implementation if 1. it&#8217;s their own standard or 2. the standard is mature. The former reason is not so respectable, but the latter reason seems logical. CSS3 is constantly changing its specifications because it&#8217;s hardly a working draft, only parts of it working in a scattered way from browser to browser.</p>
<p>And the future? Who knows? Someone at sometime will have to accept that they will be losing a big part of their audience if they decide to use all these XML modules, CSS3, and so on. Somebody else is going to remain behind, using HTML 4, with a much greater audience, yet still behind the times. This cycle will likely repeat for many many years. One day there probably will be an XHTML 2, or perhaps a markup type like CHTML (C++ Hypertext Markup Language) which uses some C++-like rules in some strange way. Maybe the web will &#8220;asplode&#8221; and end this whole paradigm called the &#8220;Internets&#8221;. Or maybe, just maybe, everyone sooner or later is just going to decide to stick with HTML 4.01 Strict forever and ever, until the end of time. There will be no content-negotiation, Internet Explorer will still not support XHTML anyway, and nobody will bother with it any longer. However it goes, it&#8217;s not such a serious issue as many used to think it was. It&#8217;s just the internet, and when society finds some other medium to use to live out their nerd-filled passions of arguing Star Wars and Star Trek, the internet will probably start to lose ground.</p>
<p>I say let the W3C do what they will, let the browser vendors do what they will, and let&#8217;s just go do our own thing for once, like complaining&#8230;about things like this on the&#8230;internet&#8230;..yikes. I guess the internet really will be around forever then&#8230;</p>
</div>
<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://valimardesign.com/2009/10/warnings-against-xhtml/&amp;n=Warnings+Against+XHTML&amp;pli=1" rel="nofollow" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
<li class="shr-blogmarks">
			<a href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://valimardesign.com/2009/10/warnings-against-xhtml/&amp;title=Warnings+Against+XHTML" rel="nofollow" title="Mark this on BlogMarks">Mark this on BlogMarks</a>
		</li>
<li class="shr-comfeed">
			<a href="http://valimardesign.com/2009/10/warnings-against-xhtml/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://valimardesign.com/2009/10/warnings-against-xhtml/&amp;title=Warnings+Against+XHTML" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
<li class="shr-designbump">
			<a href="http://designbump.com/submit?url=http://valimardesign.com/2009/10/warnings-against-xhtml/&amp;title=Warnings+Against+XHTML&amp;body=First%2C%20the%20Links%0D%0ABeware%20of%20XHTML%20-%20quite%20a%20few%20years%20ago%2C%20this%20article%20had%20appeared%20on%20this%20well-designed%20site%20that%20serves%20XHTML%20to%20browsers%20such%20as%20Firefox%20and%20HTML%204.01%20Strict%20to%20Internet%20Explorer.%20This%20article%20on%20XHTML%20outlined%20the%20multiple%20problems%20with%20implementing%20XHTML%2C%20how%20its%20usefulness%20de" rel="nofollow" title="Bump this on DesignBump">Bump this on DesignBump</a>
		</li>
<li class="shr-designfloat">
			<a href="http://www.designfloat.com/submit.php?url=http://valimardesign.com/2009/10/warnings-against-xhtml/&amp;title=Warnings+Against+XHTML" rel="nofollow" title="Submit this to DesignFloat">Submit this to DesignFloat</a>
		</li>
<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://valimardesign.com/2009/10/warnings-against-xhtml/&amp;title=Warnings+Against+XHTML" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://valimardesign.com/2009/10/warnings-against-xhtml/&amp;t=Warnings+Against+XHTML" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
<li class="shr-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://valimardesign.com/2009/10/warnings-against-xhtml/&amp;title=Warnings+Against+XHTML" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://valimardesign.com/2009/10/warnings-against-xhtml/&amp;imageurl=" rel="nofollow" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://valimardesign.com/2009/10/warnings-against-xhtml/&amp;title=Warnings+Against+XHTML&amp;srcUrl=http://valimardesign.com/2009/10/warnings-against-xhtml/&amp;srcTitle=Warnings+Against+XHTML&amp;snippet=First%2C%20the%20Links%0D%0ABeware%20of%20XHTML%20-%20quite%20a%20few%20years%20ago%2C%20this%20article%20had%20appeared%20on%20this%20well-designed%20site%20that%20serves%20XHTML%20to%20browsers%20such%20as%20Firefox%20and%20HTML%204.01%20Strict%20to%20Internet%20Explorer.%20This%20article%20on%20XHTML%20outlined%20the%20multiple%20problems%20with%20implementing%20XHTML%2C%20how%20its%20usefulness%20de" rel="nofollow" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://valimardesign.com/2009/10/warnings-against-xhtml/&amp;t=Warnings+Against+XHTML" rel="nofollow" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
<li class="shr-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://valimardesign.com/2009/10/warnings-against-xhtml/&amp;t=Warnings+Against+XHTML" rel="nofollow" title="Post this to MySpace">Post this to MySpace</a>
		</li>
<li class="shr-netvibes">
			<a href="http://www.netvibes.com/share?title=Warnings+Against+XHTML&amp;url=http://valimardesign.com/2009/10/warnings-against-xhtml/" rel="nofollow" title="Submit this to Netvibes">Submit this to Netvibes</a>
		</li>
<li class="shr-ning">
			<a href="http://bookmarks.ning.com/addItem.php?url=http://valimardesign.com/2009/10/warnings-against-xhtml/&amp;T=Warnings+Against+XHTML" rel="nofollow" title="Add this to Ning">Add this to Ning</a>
		</li>
<li class="shr-propeller">
			<a href="http://www.propeller.com/submit/?url=http://valimardesign.com/2009/10/warnings-against-xhtml/" rel="nofollow" title="Submit this story to Propeller">Submit this story to Propeller</a>
		</li>
<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://valimardesign.com/2009/10/warnings-against-xhtml/&amp;title=Warnings+Against+XHTML" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
<li class="shr-scriptstyle">
			<a href="http://scriptandstyle.com/submit?url=http://valimardesign.com/2009/10/warnings-against-xhtml/&amp;title=Warnings+Against+XHTML" rel="nofollow" title="Submit this to Script &amp; Style">Submit this to Script &amp; Style</a>
		</li>
<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://valimardesign.com/2009/10/warnings-against-xhtml/&amp;title=Warnings+Against+XHTML" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
<li class="shr-techmeme">
			<a href="http://twitter.com/home/?status=Tip+@Techmeme+http://valimardesign.com/2009/10/warnings-against-xhtml/+&quot;Warnings+Against+XHTML&quot;&amp;source=shareaholic" rel="nofollow" title="Tip this to TechMeme">Tip this to TechMeme</a>
		</li>
<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://valimardesign.com/2009/10/warnings-against-xhtml/" rel="nofollow" title="Share this on Technorati">Share this on Technorati</a>
		</li>
<li class="shr-tumblr">
			<a href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fvalimardesign.com%2F2009%2F10%2Fwarnings-against-xhtml%2F&amp;t=Warnings+Against+XHTML" rel="nofollow" title="Share this on Tumblr">Share this on Tumblr</a>
		</li>
<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Warnings+Against+XHTML+-+http://tinyurl.com/25voehv&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
<li class="shr-twittley">
			<a href="http://twittley.com/submit/?title=Warnings+Against+XHTML&amp;url=http%3A%2F%2Fvalimardesign.com%2F2009%2F10%2Fwarnings-against-xhtml%2F&amp;desc=First%2C%20the%20Links%0D%0ABeware%20of%20XHTML%20-%20quite%20a%20few%20years%20ago%2C%20this%20article%20had%20appeared%20on%20this%20well-designed%20site%20that%20serves%20XHTML%20to%20browsers%20such%20as%20Firefox%20and%20HTML%204.01%20Strict%20to%20Internet%20Explorer.%20This%20article%20on%20XHTML%20outlined%20the%20multiple%20problems%20with%20implementing%20XHTML%2C%20how%20its%20usefulness%20de&amp;pcat=Technology&amp;tags=" rel="nofollow" title="Submit this to Twittley">Submit this to Twittley</a>
		</li>
<li class="shr-webblend">
			<a href="http://thewebblend.com/submit?url=http://valimardesign.com/2009/10/warnings-against-xhtml/&amp;title=Warnings+Against+XHTML&amp;body=First%2C%20the%20Links%0D%0ABeware%20of%20XHTML%20-%20quite%20a%20few%20years%20ago%2C%20this%20article%20had%20appeared%20on%20this%20well-designed%20site%20that%20serves%20XHTML%20to%20browsers%20such%20as%20Firefox%20and%20HTML%204.01%20Strict%20to%20Internet%20Explorer.%20This%20article%20on%20XHTML%20outlined%20the%20multiple%20problems%20with%20implementing%20XHTML%2C%20how%20its%20usefulness%20de" rel="nofollow" title="Blend this!">Blend this!</a>
		</li>
<li class="shr-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://valimardesign.com/2009/10/warnings-against-xhtml/&amp;submitHeadline=Warnings+Against+XHTML&amp;submitSummary=First%2C%20the%20Links%0D%0ABeware%20of%20XHTML%20-%20quite%20a%20few%20years%20ago%2C%20this%20article%20had%20appeared%20on%20this%20well-designed%20site%20that%20serves%20XHTML%20to%20browsers%20such%20as%20Firefox%20and%20HTML%204.01%20Strict%20to%20Internet%20Explorer.%20This%20article%20on%20XHTML%20outlined%20the%20multiple%20problems%20with%20implementing%20XHTML%2C%20how%20its%20usefulness%20de&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" title="Buzz up!">Buzz up!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://valimardesign.com/2009/10/warnings-against-xhtml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
