HTML 5 XML compatibility

They say that HTML 5 will be allowed to be XML compatible to silence all those who disagree with the new "everybody hates XML" philosophy. But is it really true?

Partly, yes, there is XML serialization. But HTML 5 is not designed to be XML compatible so it will not be XML compatible. There's some "impedance mismatch" examples between HTML 5 and XML described already in some discussions. I have found one example myself recently.

There are those data-* attributes that everybody's excited about. But what about XML? Schema validator will have to have anyAttribute tag for every element. This means that it will allow any (even non-data) attributes in all elements. This in turn means that it will not be possible to spot any typo mistake in attribute name. What's this validation for?

W3C is trying to make HTML more "human friendly". But they forgot that even machines are made by humans. And it's used by humans. So who will loose when we introduce additional complexity for machines?

UPDATE: I noticed another weird fact. HTML 5 will have the same namespace as XHTML. I'm not 100% sure, but is it right to have two different schemas for one namespace?

UPDATE 2: Nice summary of this topic is available at IBM developer works.

Last update
201007150000