{"id":172,"date":"2003-04-20T15:17:36","date_gmt":"2003-04-20T19:17:36","guid":{"rendered":"https:\/\/www.goer.org\/wordpress\/we_have_a_winner"},"modified":"2003-04-20T15:17:36","modified_gmt":"2003-04-20T19:17:36","slug":"we_have_a_winner","status":"publish","type":"post","link":"https:\/\/www.goer.org\/Journal\/2003\/04\/we_have_a_winner.html","title":{"rendered":"We Have a Winner!"},"content":{"rendered":"<p>So the <acronym title=\"eXtensible HyperText Markup Language, version 2\"><a href=\"http:\/\/www.w3.org\/TR\/xhtml2\/\" title=\"XHML2.0 - latest draft specification\">XHTML2<\/a><\/acronym> people have judged poor little old <acronym title=\"HyperText Markup Language\">HTML<\/acronym> and found it wanting.  <acronym title=\"eXtensible HyperText Markup Language\">XHTML1<\/acronym> isn&#8217;t good enough for them either, because it&#8217;s really just a reformulation of HTML, and neither language is &#8220;semantic enough&#8221;.  The Semantic Web is not here yet, but through the technological solution of XHTML2, we&#8217;re going to <em>make it happen<\/em>.<\/p>\n<p>Given that the plan is to make the web a better place by pushing out a &#8220;better&#8221; markup language, it behooves us to ask:  how are we doing on <em>current<\/em> standards compliance? No, really, stop chuckling, it&#8217;s a serious question.  XHTML 1.0 has been <a href=\"http:\/\/www.w3.org\/TR\/xhtml1\/\" title=\"XHML1.0 specification: see date at top\">out for over three years<\/a>, and the percentage of sites that conform to the XHTML specification is not noticeably different from zero.<sup><a href=\"#20-1\">1<\/a><\/sup>  A naive person might wonder whether this failure of XHTML 1 to gain traction could pose a problem.<\/p>\n<p>Then &#8212; a revelation.  Through rather mysterious circumstances, I found myself at the website of <a href=\"http:\/\/golem.ph.utexas.edu\/~distler\/blog\/index.shtml\">Jacques Distler<\/a>.  After browsing his site for a while, I have come to the inescapable conclusion that <em>Jacques Distler may well be the only person on the planet who understands the XHTML 1 <a href=\"http:\/\/www.w3.org\/TR\/xhtml11\/\" title=\"XHTML 1.1 - Module-based XHTML\">specification<\/a> and uses it properly<\/em>.<\/p>\n<p>That is, Distler&#8217;s site:<\/p>\n<ol>\n<li>\n<p>Passes the &#8220;Simple Validation Test&#8221;:  The home page <a href=\"http:\/\/validator.w3.org\/check?uri=http:\/\/golem.ph.utexas.edu\/~distler\/blog\/index.shtml\">validates<\/a> as XHTML. (Most sites with a DOCTYPE of XHTML or HTML fail this test.)<\/p>\n<\/li>\n<li>\n<p>Passes the &#8220;Laziness Test&#8221;:  In this test, we try validating two or three random pages deeper in the site. (This test is meant to filter out people who lazily slap a DOCTYPE on all their pages but only bother to actually validate their home page.)<\/p>\n<\/li>\n<li>\n<p>Passes the &#8220;MIME-type Test&#8221;:  The server is serving up the pages with a MIME-Type of <code>application\/xhtml+xml<\/code>, in accordance with the specification.<sup><a href=\"#20-2\">2<\/a><\/sup> (All together, now: &#8220;<a href=\"http:\/\/www.hixie.ch\/advocacy\/xhtml\">Serving up XHTML as <code>text\/html<\/code> is evil<\/a>.&#8221;  Good.)<\/p>\n<\/li>\n<li>\n<p>Passes the (somewhat ad-hoc) &#8220;Cluefulness Test&#8221;:  Distler is actually <strong>using XHTML<\/strong> to do something that you can&#8217;t do using plain old HTML.  Namely, he&#8217;s embedding valid <a href=\"http:\/\/www.w3.org\/Math\/\" title=\"W3C MathML page\">MathML markup<\/a> in order to display equations directly in his blog. (If you&#8217;re going to go to all the trouble of getting your site to validate as XHTML, you really ought to <em>do something<\/em> with it, yes?)<\/p>\n<\/li>\n<\/ol>\n<p>So there you have it folks. <em>One<\/em> man is knowledgeable enough to implement our latest web standards correctly.  The fact that this particular man is a <a href=\"http:\/\/golem.ph.utexas.edu\/~distler\/\">theoretical physicist<\/a> specializing in <a href=\"http:\/\/www-spires.slac.stanford.edu\/cgi-bin\/spiface\/find\/hep\/www?rawcmd=fin+au+distler%2Cj\">string theory and quantum field theory<\/a> <em>should not dissuade us in the slightest<\/em> that the technological solution that the W3C has chosen will ultimately prevail.<\/p>\n<p><small><a name=\"20-1\"><\/a>1. In fact, after some preliminary investigation on my own, I began to worry that the <em>absolute<\/em> number of sites that conform to the XHTML specification is, in fact, <em>exactly<\/em> zero.  More on this later.<\/small><\/p>\n<p><small><a name=\"20-2\"><\/a>2. Note that Distler&#8217;s site comes awfully close to failing the MIME-type test.  Distler is serving up his pages as <code>application\/xhtml-xml<\/code> to all browsers that support it (such as Mozilla) and <code>text\/html<\/code> to browsers that don&#8217;t, such as Internet Explorer.  According to the <a href=\"http:\/\/www.w3.org\/TR\/2002\/NOTE-xhtml-media-types-20020801\/#summary\">specification<\/a>, XHTML 1.0 documents &#8220;MAY&#8221; under certain circumstances be served up as <code>text\/html<\/code>, but XHTML 1.1 documents &#8220;SHOULD NOT&#8221;.  To wit:  &#8220;In particular, &#8216;text\/html&#8217; is NOT suitable for XHTML Family document types that adds elements and attributes from foreign namespaces, such as XHTML+MathML.&#8221;  But we&#8217;ll give him a pass on this one.<\/small><\/p>\n<p><small><a name=\"20-3\"><\/a>3. Note that serving <code>application\/xhtml-xml<\/code> to some browsers and <code>text\/html<\/code> to other browsers is the <strong>only realistic way to follow the specification as of this date.<\/strong>  Serving <code>text\/html<\/code> to all user agents is plainly wrong.  How about serving up <code>application\/xhtml-xml<\/code> in all cases?  While admirably purist, this approach is suicidal, because IE6 chokes on that MIME-type.<\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After browsing his site for a while, I have come to the inescapable conclusion that <em>Jacques Distler may well be the only person on the planet who understands the XHTML 1 specification and uses it properly<\/em>.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-172","post","type-post","status-publish","format-standard","hentry","category-web"],"_links":{"self":[{"href":"https:\/\/www.goer.org\/Journal\/wp-json\/wp\/v2\/posts\/172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.goer.org\/Journal\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.goer.org\/Journal\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.goer.org\/Journal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.goer.org\/Journal\/wp-json\/wp\/v2\/comments?post=172"}],"version-history":[{"count":0,"href":"https:\/\/www.goer.org\/Journal\/wp-json\/wp\/v2\/posts\/172\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.goer.org\/Journal\/wp-json\/wp\/v2\/media?parent=172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.goer.org\/Journal\/wp-json\/wp\/v2\/categories?post=172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.goer.org\/Journal\/wp-json\/wp\/v2\/tags?post=172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}