Workaround for SVG in IE

swood - May 14, 2008 - 17:43
Project:Drawing API
Version:5.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I have playing around with the SVG API and it works great using Firefox. The problem came about when I tested IE. No attempt modifying headers, etc. seemed to work. I created a very small test.xhtml to demonstrate the problem and ran it both under IE and Firefox. Still had the same issue.

It turns out, if you add a simple dummy comment immediately after the xml tag, IE will display the SVG inline. Here is the sample that I have been testing. Any ideas on why this would fix IE?

I'd like to be able to remove the comment, because it's causing some other problems in IE with my modified Garland theme. Namely that tables with width at 100% are wreaking havoc.

<?php
<?xml version="1.0" encoding="UTF-8"
?>

SVG embedded inline in XHTML

<?import namespace="svg" implementation="#AdobeSVG"?>

SVG embedded inline in XHTML

?>

#1

swood - May 14, 2008 - 17:48

I apologize for the earlier post. The include didn't work correctly. Here is the sample text as an attachment.

AttachmentSize
test.txt 801 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.