Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with 1.3.2 and Internet Explorer #158

Closed
ljean opened this issue May 5, 2010 · 3 comments
Closed

Problem with 1.3.2 and Internet Explorer #158

ljean opened this issue May 5, 2010 · 3 comments

Comments

@ljean
Copy link

ljean commented May 5, 2010

Hello,

I was using Raphael 1.2.1 without any problem and I decided to upgrade to 1.3.2. Unfortunately after the upgrade my webapp stopped working on IE.
After some investigation I succeed to fix the issue by commenting the following piece of code :

from line 65 to 73:

/*  
if (R.type == "VML") {
    var d = doc.createElement("div");
    d.innerHTML = '<!--[if vml]><br><br><![endif]-->';
    if (d.childNodes[length] != 2) {
        return R.type = null;
    }
    d = null;
}*/

Have you notice this problem on IE? Is it normal?

Thanks for the wonderful raphaeljs. :)
Best
luc

@thinklinux
Copy link

Thanks a lot! I'm with 1.4.4. That made raphael works on IE7... but now I have other problem with IE6.

IE6 crashes and the error is that -> Internet Explorer cannot open the internet site. Operation aborted. However I think this is not a raphael problem.
Thanks again for the solution. And it makes me wonder what is this code all about ?

P.S. I also saw another solution. Just make [if vml] to [if IE]

@DmitryBaranovskiy
Copy link
Owner

[if IE] will make it use VML on IE9 that supports SVG.
fixed.

@thinklinux
Copy link

thanks a lot for the fix !!! :)

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants