Detecting SVG-in-HTML capabilities

Most browsers support inline SVG in XHTML (application/xhtml+xml).  No
browsers natively support SVG-in-HTML (text/html) though Firefox
sounds like it is getting closer.

Should there be a feature string defined in HTML5 for this capability
(i.e. specifically for supporting SVG-in-HTML-syntax) for use with
hasFeature [1]?  I'm concerned about fallback scenarios and for
preventing extra work for some libraries [2].

Regards,
Jeff

[1] http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-5CED94D7
[2] http://berjon.com/hacks/force-svg/

Received on Thursday, 23 July 2009 01:05:25 UTC