Reputation: 2049
I have an html page with this code
<object data="ciao.xhtml" width="100%" height="100%"
type="application/xhtml+xml">
</object>
ciao.xhtml contain a well formed xhtml with svg embedded.
It work well in chrome and firefox but when i test it on explorer i don't see enything
Upvotes: 1
Views: 115
Reputation: 943579
Internet Explorer, except version 9 (which isn't out) and versions with third party plugins (which are rare) doesn't support XHTML (text/html content with an XHTML Doctype doesn't count) or SVG.
If you want this to work then you need to look at providing alternative content for IE 8 and lower, e.g. an iframe containing an HTML document with embedded VML.
Upvotes: 2
Reputation: 499012
Change the type attribute to type="image/svg+xml"
and the file name extension to .svg
as the SVG recommendation says.
Upvotes: 0