Friday, June 06, 2008
The HTML 5 monster
Till recently, I haven't paid much attention to HTML 5, but I've started to notice that it looks like a disastrous exercise in bloating. Justin James's recent comments give some clues about where it's going far beyond a markup language.
For instance, HTML 5 contains a number of API's, including support for SQL. What makes this possible is that DOM, not the text markup, is the heart of the new HTML definition. Implementations of HTML 5 "must support some version of DOM Core and DOM Events." Required support for events seems to imply required support for scripting, but elsewhere the document says: "Implementations that do not support scripting (or which have their scripting features disabled) are exempt from supporting the events and DOM interfaces mentioned in this specification. For the parts of this specification that are defined in terms of an events model or in terms of the DOM, such user agents must still act as if events and the DOM were supported." I don't know what "acting as if" they were supported means.
This truly boggles me: "Conformance checkers must check that the input document conforms when scripting is disabled, and should also check that the input document conforms when scripting is enabled. (This is only a 'SHOULD' and not a 'MUST' requirement because it has been proven to be impossible. [HALTINGPROBLEM])" As a consequence of defining events into the language, in the general case HTML 5 documents can't be validated!
The working draft says, "The main area that has not been adequately addressed by HTML is a vague subject referred to as Web Applications." There is a good point to this, but the question is what HTML's role should be in supporting web applications. It should provide a tag framework which applications can use in an extensible way. It shouldn't define specific technologies into the language or require their support.
HTML 5 looks as if it will end up horribly bloated. This doesn't bode well for browser security.
Labels: HTML