createElement in SVG context

Hi all,

Until recently, I has the understanding that document.createElement when 
called in the context of an SVG document would return a SVGElement when 
asking for the creation of SVG elements: e.g. "text", "g", .... Recent 
tests with Firefox Nightly and Chrome Canary proved me wrong: they both 
return Element objects. Why is that? I could not find any place in the 
spec that describes this behavior. Is there some text? Is it really the 
case that to create SVGElement you have to use createElementNS? That's a 
bit painful I think.

Regards,
Cyril

-- 
Cyril Concolato
Maître de Conférences/Associate Professor
Groupe Multimedia/Multimedia Group
Telecom ParisTech
46 rue Barrault
75 013 Paris, France
http://concolato.wp.mines-telecom.fr/

Received on Wednesday, 16 October 2013 11:09:52 UTC