- From: Dirk Schulze <dschulze@adobe.com>
- Date: Wed, 16 Oct 2013 05:16:38 -0700
- To: Cyril Concolato <cyril.concolato@telecom-paristech.fr>
- CC: "public-svg-wg@w3.org" <public-svg-wg@w3.org>
> On Oct 16, 2013, at 1:09 PM, "Cyril Concolato" <cyril.concolato@telecom-paristech.fr> wrote: > > 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. > The price of having a separate namespace for SVG other than HTML. Yes, you need to define the SVG namespace with createElement. Greetings Dirk > 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 12:17:09 UTC