Testing my website after updating to the newest version is failing. I have added in the resize-observer-polyfill
.
Now IE 11 gives me this error: Object doesn't support property or method 'getElementsByClassName'
Checked canIUse and it seems to support this method Also have this at the top of my HTML file:
<!DOCTYPE html>
<html lang="en">
<head>
<!-- THIS MUST BE THE FIRST TAG OR IT DOESN'T WORK -->
<meta http-equiv="X-UA-Compatible" content="IE11" />
<meta charset="utf-8" />
<meta name="google" content="notranslate" />
My assumption is that I may need to add a polyfill to handle this since it looks like this function is not supported for svgElements? Tried adding this at the top of index.js to polyfill in the function but didn't seem to do anything :(
document.getElementsByClassName = function (className) {
return this.querySelectorAll("." + className);
};
Element.prototype.getElementsByClassName = document.getElementsByClassName;
}