Re: Some thoughts on DOM 2.0, Simpler

On Mon, 27 Jul 2009 05:42:08 +0200, Cameron McCormack <cam@mcc.id.au> wrote:
> Jeff Schiller:
>> As a developer, I'd be very much in favor of an E4X-like solution to
>> creating elements (as evidenced by my DOMParser hack on the mailing
>> list).
>
> 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.

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


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Monday, 27 July 2009 08:06:15 UTC