Bug Tracker

Opened 16 years ago

Closed 16 years ago

Last modified 11 years ago

#1066 closed bug (wontfix)

jQuery does not work with SVG documents

Reported by: uncle.f Owned by:
Priority: major Milestone:
Component: core Version: 1.1.2
Keywords: svg xml ie Cc:
Blocked by: Blocking:


I am trying to use jQuery to dynamically change the contents of an SVG 1.1 document.

I have included the jquery library the following way in my SVG document:

<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<?xml-stylesheet href="my.css" type="text/css"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
<svg width="100%" height="100%" version="1.1" xmlns="http://www.w3.org/2000/svg"
<script xlink:href="my.js" type="text/ecmascript" />
<script xlink:href="jquery.js" type="text/ecmascript" />

Firefox/Opera load this correctly and it is possible to use jQuery with them. However IE6.x and IE7.x throw an error like this:

navigator.userAgent is null or not an object line:1 column:0

Operating jQuery in IE is not possible after that.

Change History (1)

comment:1 Changed 16 years ago by john

need: Review
Resolution: wontfix
Status: newclosed

Internet Explorer's SVG/JavaScript implementation is really really scary. There's a vast fleet of bugs that are completely different from normal IE JavaScript bugs. For that reason, I'm going to have to say that we're not going to fix this. Maybe someday we can build svgQuery - but until then, we're stuck with what we have (a really bad SVG implementation in IE).

Note: See TracTickets for help on using tickets.