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

Re: SVG in text/html

From: Cameron McCormack <cam@mcc.id.au>
Date: Tue, 31 Mar 2009 11:32:03 +1100
To: Ian Hickson <ian@hixie.ch>
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: <20090331003203.GG24421@arc.mcc.id.au>
Cameron McCormack:
> > I agree with you and Jeff that unknown elements placed in the SVG 
> > namespace should implement SVGElement.

Ian Hickson:
> Is this defined in SVG anywhere?

No.

> 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');

My expectation is that it implements SVGElement.  I do not know if this
is what happens in practice.  It would be interesting if someone tested
that.  Maybe this could be an erratum for SVG 1.1?

> > 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.

That doesn’t say anything to the difficulty in searching for elements to
implement compared to the difficulty in searching for canonical cases to
use for elements/attributes during parsing, though.  I posit that these
difficulties are roughly the same.

-- 
Cameron McCormack ≝ http://mcc.id.au/
Received on Tuesday, 31 March 2009 00:33:23 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:42 GMT