Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JointJS doesn't work with newer jQuery Versions (>1.11.1 | > 2.1.1) under Internet Explorer 11

See original GitHub issue

When using JointJS with jQuery Version higher than 1.11.1 or 2.1.1 JointJS doesn’t work under Internet Explorer 11 (I have not tested any other version).

I receive following error message when constructing the Paper:

SCRIPT438: Object doesn't support property or method getElementsByClassName
File: jquery-2.1.3.js, Row: 800, Column: 5

It looks like jQuery can’t search by className (like find(‘.rotatable’)) on SVG DOM elements.

Chrome and Firefox don’t have this problem.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

kumilinguscommented, Mar 10, 2016

I suggest to use jQuery v2.2.1 if possible. If this is not an option a polyfill is needed. e.g.

if (SVGElement.prototype.contains === undefined) {
    SVGElement.prototype.contains = function(el) {
        return $.contains(this, el);

if (SVGElement.prototype.getElementsByClassName === undefined) {
    SVGElement.prototype.getElementsByClassName = function(className) {
        return this.querySelectorAll('.' + className);
msiadakcommented, Jun 14, 2016

@kumilingus jQuery 3.0 did not resolve this issue for me, but your polyfill above did. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

jQuery not working with IE 11 - Stack Overflow
In my case, it started working when I went back to an older version of jquery. with jquery 2.2.3 it would show '$...
Read more >
Minimum jQuery version that supports IE11 - am I reading this ...
It looks like from the chart found on the link below, that the minimum jQuery version that supports IE11 would be any version...
Read more >
Not implemented - Jquery issue with IE versions 8,9,10,11.0.x
When i tried to attach source to video using jquery like below: ... video dynamically using javascript/Jquery is not working in IE <11.5x....
Read more >
所有库 - 基于CDNJS.COM的前端开源库文件快速浏览搜索平台
库名 最新版本 描述 16pixels 0.1.12 16pixels as a node packaged module 6pac‑slickgrid 3.0.2 A lightning fast JavaScript grid/spreadsheet 6px 1.0.3 Javascript client for 6px
Read more >
Web Libraries in Jars - WebJars
Name, GroupId, ArtifactId, Versions ... org.webjars, codef0rmer-angular-dragdrop, 1.0.11 ... angularjs-ie8-build, org.webjars.bower, angularjs-ie8-build ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found