Re: Placing elements in the HTML namespace

On Thu, 15 Jan 2009 16:34:11 +0100, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> Right.  Gecko has a concept of "html element" that is distinct from the  
> namespace, and this is used to force such elements to match CSS  
> selectors in the XHTML namespace.
>
> However, there are two differences between XHTML and HTML in Gecko last  
> I checked (in 2005, but I don't think we've changed these):
>
> 1)  frames/iframes.  For XHTML we use the id attribute value as the
>      window name, for HTML we use the name attribute value.  Should this
>      be based on the document type instead?  Or something else?

You should always use name='', per HTML5, I think.


> 2)  Serializing XML -- for XHTML we set shorthand attrs to be
>      |foo="foo"| while for HTML we set them to just be |foo|.
>      This only affects people calling the XML serializer on a DOM coming
>      from text/html, but that sounds like something HTML5 wants to
>      support.

Not sure what you mean here. Are you saying that the XML serializer isn't serializing as XML for HTML elements?

-- 
Simon Pieters
Opera Software

Received on Thursday, 15 January 2009 16:12:35 UTC