Code Monkey home page Code Monkey logo

Comments (11)

wout avatar wout commented on May 21, 2024

When doing a checkup yesterday I noticed this too. It's something recent I suspect. IE10 does a wonderful job so it's most definitely a render bug in IE9.

IE10

from svg.js.

mreq avatar mreq commented on May 21, 2024

Did it at a point work in IE9? I might browse through the commit history to pinpoint the source of issue. Good thing IE9 has such good developer tools</sarcasm>.

from svg.js.

wout avatar wout commented on May 21, 2024

Yes it did. But to be honest, I only test regularly on IE10 because that is the one I have easily available. I'll go down in history later this week to find our where it went wrong.

from svg.js.

wout avatar wout commented on May 21, 2024

But if you are willing to take the dive, any help would be very welcome. :) I don't have a lot of time on my hands right now and when I know where it went wrong I can fix it quickly.

from svg.js.

mreq avatar mreq commented on May 21, 2024

I'll try and look. I need to fix IE9 as soon as possible in order to
know whether I can continue using svg.js, which I dig ;)

On 3.7.2013 20:26, Wout Fierens wrote:

But if you are willing to take the dive, any help would be very
welcome. :) I don't have a lot of time on my hands right now and when
I know where it went wrong I can fix it quickly.


Reply to this email directly or view it on GitHub
#57 (comment).

from svg.js.

wout avatar wout commented on May 21, 2024

Brilliant! I need the fix too next week so if you don't manage to find it I will continue the search this weekend. It probably is a small thing but unfortunately it really is like finding a needle in a haystack. ;)

Great to hear you like svg.js.

from svg.js.

mreq avatar mreq commented on May 21, 2024

Tried to run the specs in IE9 and got a sad image. That'll be a one-liner somewhere imho

screenshot_2013-07-03-23-16-46

from svg.js.

wout avatar wout commented on May 21, 2024

Yes, most definitely. Probably an IE incompatibility in SVG.Number. IE 10 also throws a lot of errors, altough they are more related to different output formatting, nothing to worry about:

screen shot 2013-07-04 at 08 22 49

I'll fix that today.

from svg.js.

wout avatar wout commented on May 21, 2024

A new version is on the way, IE9-proof. It turned out to be something very silly. As it turns out, IE9 does not call toString() on objects when passing an object as attribute value. Changing lines 166 and 167 in the src/element.js from this:

n != null ?
  this.node.setAttributeNS(n, a, v) :
  this.node.setAttribute(a, v)

to this:

n != null ?
  this.node.setAttributeNS(n, a, v.toString()) :
  this.node.setAttribute(a, v.toString())

Will fix the problem. I will release the changes later today.

screen shot 2013-07-04 at 09 35 59

screen shot 2013-07-04 at 09 35 29

from svg.js.

mreq avatar mreq commented on May 21, 2024

Yes that did it, thanks. Great work!

from svg.js.

wout avatar wout commented on May 21, 2024

Release v0.26 has been released fixing IE9 issues.

from svg.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.