W3C home > Mailing lists > Public > www-math@w3.org > November 2006

Re: [whatwg] The problems with namespaces in text/html (Was: MathML-in-HTML5)

From: Elliotte Harold <elharo@metalab.unc.edu>
Date: Sun, 05 Nov 2006 07:12:44 -0500
Message-ID: <454DD53C.6090208@metalab.unc.edu>
To: Lachlan Hunt <lachlan.hunt@lachy.id.au>
CC: www-math@w3.org, WHAT WG List <whatwg@whatwg.org>

Lachlan Hunt wrote:

> No, not without namespaces, just without the xmlns and QNames syntax.
> 
> e.g. when <math> is encountered in text/html, it appears in the DOM as 
> <math xmlns="http://www.w3.org/1998/Math/MathML">

That's like saying you want to have biology but without all that yucky 
evolution silliness.

If you don't have xmnls and xmlns:prefix then there are no namespaces, 
period. I think some people have drunk too much Infoset Kool-aid. Walter 
Perry, I knew you were right, but I didn't know how right you were.

I don't care what appears in the DOM. My model is not the DOM. Most 
models are not the DOM.

All we have is the document's text. This is what must be defined. If 
there are no namespaces in the text, then there are no namespaces. The 
DOM is a transitory model used locally. It is not the document.

> We definitely don't want people thinking they can use any arbitrary 
> xmlns in HTML.  That's what XHTML is for.

I'm not sure why that bothers you. As long as things are well-formed, 
what's the harm? Existing browsers seem to deal OK and in a fairly 
well-defined way with content from arbitrary namespaces. (They ignore 
it.) I've taken advantage of this for years in my own Web pages.

-- 
´╗┐Elliotte Rusty Harold  elharo@metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/
Received on Sunday, 5 November 2006 12:13:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:12:59 GMT