Re: Some thoughts on DOM 2.0, Simpler

Cameron McCormack:
> > HTML 5 defines innerHTML to work on XML documents (where assigning to it
> > would parse the string parameter as XML, predeclaring any namespaces
> > that are available on the element).  I’m not sure if this applies to all
> > XML documents supported by the UA (like when showing a standalone SVG
> > document) or just XHTML documents.

Anne van Kesteren:
> Per HTML5 there is no difference between the two. innerHTML on
> elements however only applies to elements in the HTML namespace.

Ah, of course; innerHTML is on HTMLElement.

I wonder if there would be any downsides to moving innerHTML to Element
(apart from the misleading name).

-- 
Cameron McCormack ≝ http://mcc.id.au/

Received on Monday, 27 July 2009 08:18:31 UTC