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. `._.-(,_..'--(,_..'`-.;.'