Topic: Unable to get property 'Contains' when using IE 11
Jakub Strebeyko staff answered 7 years ago
Hi there Alex,
Thanks for reaching out! It seems like the i
in the i.classList.contains(...
is simply not there, but why exactly (we're looking at you, IE11!) is hard to guess using just presented data - it might have to do with IE11 HTML Parsing (1) or IE11 not granting the .contains()
method to SVG elements (1, 2). You can try and share your code here, but [SPOILER ALERT
] there's not much we can offer to countermeasure the issue except for shims and polyfills available online.
With Best Regards,
Kuba
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
alex9249 pro commented 7 years ago
Forgot to add that this is where its breaking in the script file: if(i.classList.contains("waves-effect")&&!(i instanceof SVGElement))