Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Best practice to declare namespace for svg in HTML Reply To: Best practice to declare namespace for svg in HTML

#197777
Shikkediel
Participant

Yeah, it’s a whole field of study on it’s own. Besides that, it’s not very compatible with jQuery either. :-S
Mighty interesting though (for general use, not so much the read-through).

I’ll mess around with it a bit, see what works or not. I even read HTML5 should automatically know what namespace to use for svg. But I think it can’t hurt to declare it with @namespace anyway – a subject that has surprisingly few Google results by the way. I’m also interested in how it would be possible to declare the xlink namespace by default. This turns up basically nothing when I run a search on it.

Using several svg elements, it would clean up the HTML nicely when the namespace ‘links’ can be taken out of the <svg> tags.

So any expertise that would be shared is very welcome. :-)