Predictions: XHTML7 August, 2016
Recently I gave a talk at SQL Saturday Baton Rouge on the history of the Web. This was a version of a talk I had given many times before, largely to codecamp classrooms of novice developers. In sexing it up for a professional technical crowd, I ended up rewriting it completely - going back to a lot of primary sources, reading the www-talk archives and the various books written by people who were there at the time (Side note: a surprising amount of these individuals feel a need to include sections in their articles on the particular type of food and entertanment had at w3c conferences. It’s…weird.) In doing all this research to get an understanding of how it is that we got where we did, I ended up forming some opinions on where we’re probably going.
In this blog post series I’m going to make some hopefully non-obvious predictions about the future of the world wide web and how it is that we got here.
Prediction 1: XHTML Will Make a Comeback
When I was starting out professionally in 2006, XHTML was the bane of my, and many other developers’, existance. You would write your page, test it in Internet Explorer and Firefox, struggle to get things layed out properly, ensure that any server or clientside errors would be hidden from the user. Then you would launch a test site and pass the results of your days of work through the XHTML validator…only to be told that you have roughly 127 validation errors. You suck.
And the worst part was that the site already looked good. What was the point of the whole XHTML thing if it didn’t help you achieve what you wanted? And then XHTML2 was supposed to be backwards incompatible!!? No Thank you. Like many others, I cheered when the effort was finally discontinued.
But here’s the thing. XHTML was a good idea. HTML was initially descended from SGML which is a sort of document markup meta-language. This is where we get angle brackets from and why our web pages look
<h1>Like This</h1> <ul> <li>one</li> <li>two</li> </ul>
instead of something
h1("Like This") list( item("one") itme("two) )
Regardless how you might feel about the final syntax, the fact that Tim Berners Lee could present his work at SGML conferences, and that people could immediately start using SGML tools to author web pages was a key component in the early success of the web. In fact, throughout the early and mid nineties, you rarely hear people discussing HTML except as an SGML subset.
It did start to deviate in both essense and syntax for a variety of reasons. Mostly due to browser vendors who - with feature requests pouring in - implemented them rapidly without waiting for community consensus. The situation slowly got worse and worse as the pace of users and thereby feature requests grew exponentially.
By the turn of the century the situation was growing untenable. Whereas the early web was teeming with web browsers created and maintained by a single individual, HTML was getting sufficiently complex to require the full resources of a company and many years of development. XHTML was meant to address this at least in part - by making HTML more consistent, it would be easier to parse, andtehreby easier to write new clients both for use by both people and for machines.
Of course this was not to be. In early 2000, the W3C approved XHTML1 and XHTML1.1 as an interim measure. These tightened restrictions on HTML; ensuring quoted attributes, that the correct tags were closed, that sort of thing. This is the XHTML that I remember and it wasn’t near enough, as mentioned XHTML2 was meant to be the one that really made things easy - and to do that, XHTML2 and HTML would necessarily be related but incompatible formats.
This was a problem for the portion of the internet that had not lost touch with what people actually wanted and in 2004 the WHATWG community was formed with the goal of mapping out the HTML that was actually used and where it could possibly go. The WHATWG was structured to be more agile than the W3C and was able to make strides rapidly. By 2006, to continue to ignore its work the W3C would be risking obsolescense. Therefore they created their own HTML 5 group, whose work would be based on WHATWG’s and would drive HTML foreward while XHTML was still not ready. And as HTML 5 progressed, it became clear that not only would XHTML2 not be ready any time soon, but it was rapidly missing its window of relevancy. As this became more and more obvious the XHTML2 group was de-chartered in favor of more resources put toward HTML 5b.
Yet I’m callinga an XHTML comeback.
Again, XHTML is a good idea and its absence has been a stumbling block in accessibilty tech and the development of the semantic web. XHTML would be great, but history has shown that people don’t care to write it. But people don’t write all that much HTML anymore.
I mean obviously they do, but hang with me for the logic here.
An ever-indreasing percentage of sites are nowadays written with virtual-dom or another framework that actually generates the bulk of the markup and it is typically no more difficult for a framework to generate XHTML than any other markup. Now obviously, framework generated HTML will never compose a majority of the web and anyone aspiring to write a general-purpose web browser will still need to parse HTML as before. But many special-purpose clients could absolutely be created to support XHTML alone.
What I envision is a future where requests can be examined by webservers running isomorphic web applications. If the request’s