[whatwg] xml:lang and xmlns in HTML

Ian Hickson ian at hixie.ch
Fri Dec 1 16:22:14 PST 2006


On Fri, 1 Dec 2006, Robert Sayre wrote:
> 
> I want to cut and paste MathML and SVG and other things into my web 
> pages.

Then you'll have to use the XML variant and the XML MIME type.

(Similarly, if you want to use JavaScript code snippets, you have to use 
JavaScript and can't use, say, C++ or VBScript.)


> I don't care about XML, or what the subset ends up being. I want to use 
> some existing XML application vocabularies in an HTML5 DOM.

The only ways to use namespaces outside of HTML right now with HTML5 DOMs 
is to either use the XML serialisation, or use a lot of very verbose 
JavaScript with DOM manipulation.


> There are certainly risks inherent in endorsing this, but I think most 
> of them are social. Are we worried that this will result in an unruly 
> population of extensions and a Tower of Babel problem?

Namespaces aren't supported by the "tag soup" processors. If you want to 
use namespaces, you have to use XML.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list