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

error in IE 11 getElementsByClassName #37

Closed
Edisson opened this issue Mar 4, 2015 · 3 comments
Closed

error in IE 11 getElementsByClassName #37

Edisson opened this issue Mar 4, 2015 · 3 comments

Comments

@Edisson
Copy link

Edisson commented Mar 4, 2015

Strange I have this error in Internet Explorer 11

it happens after execution
taskBox.find(".linkHandleSVG").mousedown(function (e)..
in ganttDrawerSVG.js file

so seems linkHandleSVG doesn't support property or method getElementsByClassName.

could you help me.. might be some problem with migration on jquery 2.1.3 I use?

@robicch
Copy link
Owner

robicch commented Mar 4, 2015

Yes, I have already solved this issue.
The problem is that jQuery used an optimezed query for searching classes (in particular using the method getElementsByClassName), that someone forget to implement in IE11 for SVG objects.

I worked around this using
el.find("[class*=linkHandleSVG]")

instead of the buggy
.find(".linkHandleSVG")

@robicch robicch closed this as completed Mar 4, 2015
@Edisson
Copy link
Author

Edisson commented Mar 4, 2015

oh it works! really, thanks!

@Patroklo
Copy link

Patroklo commented Aug 9, 2017

Hi! First of all, thanks to @robicch for this awesome library!
In second place, I have just made a fork of this project and made a couple of changes to make the app compatible with IE11, right now I'm testing it but it seems that with a couple of little code lines I could make it. Feel free to download it in https://github.com/Patroklo/jQueryGantt

Can't promise a steady update of my fork, but if you send me a message via github or mail, I'll try to update it asap with the main trunk.

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