W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2009

[whatwg] A Selector-based metadata proposal (was: Annotating structured data that HTML has no semantics for)

From: Toby Inkster <mail@tobyinkster.co.uk>
Date: Fri, 22 May 2009 15:44:32 +0100
Message-ID: <1243003472.19721.129.camel@ophelia2.g5n.co.uk>
On Fri, 2009-05-22 at 12:26 +0200, Eduard Pascual wrote:
> Are you calling the DOM Consistency Principle a "theoretical" or
> "aesthetic" argument?

Certainly not -- DOM consistency is a great idea. But given that the
HTML5 spec defines how the DOM is built, there's a very simple solution
to that -- HTML5 could simply mandate that:

	<html xmlns:foo="http://foo.example.com/">

generates an identical DOM representation in both XHTML5 and HTML5.
What's the problem with that? 

In existing implementations, there are differences, sure. But for the
most part, those differences are pretty small and obscure, and don't
actually effect real world code very much. e.g. the following code seems
to work fine in Opera, Firefox and Midori (a Webkit browser):

	http://buzzword.org.uk/2009/dom.html
	http://buzzword.org.uk/2009/dom.xhtml

The files are byte-for-byte identical (indeed, on disk, one is just a
symlink to the other).

-- 
Toby Inkster <mail at tobyinkster.co.uk>
Received on Friday, 22 May 2009 07:44:32 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:49 UTC