W3C home > Mailing lists > Public > www-svg@w3.org > July 2009

Re: Some thoughts on DOM 2.0, Simpler

From: Cameron McCormack <cam@mcc.id.au>
Date: Mon, 27 Jul 2009 18:17:39 +1000
To: Anne van Kesteren <annevk@opera.com>
Cc: Jeff Schiller <codedread@gmail.com>, www-svg <www-svg@w3.org>
Message-ID: <20090727081739.GA5087@arc.mcc.id.au>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:23 UTC