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

Re: SVG in text/html

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 31 Mar 2009 00:22:11 +0000 (UTC)
To: Cameron McCormack <cam@mcc.id.au>
Cc: Anne van Kesteren <annevk@opera.com>, Jeff Schiller <codedread@gmail.com>, Sam Ruby <rubys@intertwingly.net>, Henri Sivonen <hsivonen@iki.fi>, Dana Lee Ling <dleeling@comfsm.fm>, www-svg <www-svg@w3.org>, HTML WG <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0903310019270.25082@hixie.dreamhostps.com>
On Tue, 31 Mar 2009, Cameron McCormack wrote:
> I agree with you and Jeff that unknown elements placed in the SVG 
> namespace should implement SVGElement.

Is this defined in SVG anywhere? What interfaces is the node X expected to 
implement when a script runs this?:

  var X = document.createElementNS('http://www.w3.org/2000/svg', 'xXxXx');

> One of the arguments given for having an explicit table of case mappings 
> in the HTML spec was that implementors would rather have that 
> information in a single place, instead of needing to hunt through the 
> SVG spec for each element and attribute that is defined.  Wouldn’t a 
> corollary of that be that the interfaces the DOM object must implement 
> be listed too?

In practice no, because user agents use the same mechanism for creating 
nodes in the parser as they do for creating nodes from scripts using the 
document.createElementNS() API. (You'll notice there's no list for HTML 
elements either.) Thus this ends up being done as part of implementing the 
vocabulary itself, rather than as part of the syntax parsing.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 31 March 2009 00:22:49 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:17 UTC