Today Google launched Google doctype, their new open reference for the web. I’m just starting to look it over, and while I’ll reserve my final judgement until I have the opportunity to spend more time poking at it, I thought I’d share my initial thoughts.
Google is right that there needs to be a solid, reliable, and complete reference to the web. The Mozilla Developer Center is being built as a complete reference to the open web. Notice the difference there. It appears that Google’s aim is to build a complete reference to all web browsers, even the ones that diverge from open standards.
That’s a critical difference. Mozilla aims to improve the web by encouraging the use of genuine open standards. The more compatible browsers are with a universal standard, the better the web experience becomes for all users, regardless of which browser they choose. Our goal isn’t to get everyone to use Firefox — it’s to get everyone using the web to the utmost of its potential.
John Resig has a great analysis of how the tests were done to determine browser compatibility, so I won’t go there.
Reading through the documentation, such as it is at this point, is an interesting experience. It’s clear that this initial release is something of a rush job, with automatically exported material posted and hoping that people will come along and tweak it up. For example, take a look at the documentation of the document.getElementsByClassName method in the DOM. It’s pretty much a stub right now. The most interesting part there is the test they did to see which browsers offer the method (not to mention the links to John Resig’s blog posts on the subject).
Contrast this to MDC’s documentation for the same property, which includes a description of what the method does, what its result means, as well as a number of examples and a link to the WHATWG specification.
This is a pretty typical example.
Google doctype is an interesting experiment, and I’ll be curious to see what happens with it, despite my confusion over its purpose.