Queryselectorall Method Is Not Supported With Ie11 In Standards Mode
I'm having an issue with IE11. The document.querySelectorAll is causing some issues. Whenever I use it via the console like so: document.querySelectorAll('.test_class'); I get th
Solution 1:
Here is how you can do it:
let classes = document.querySelectorAll('.test_class')
Array.prototype.forEach.call(classes, element => {
console.log("class",element)
})
Solution 2:
I just found the answer to this almost as soon as I posted the question:
The issue was to add the following metatag:
<metahttp-equiv="X-UA-Compatible"content="IE=edge,chrome=1" />
Found this here: http://corpus.hubwiz.com/2/angularjs/25632927.html
Hope it helps.
Post a Comment for "Queryselectorall Method Is Not Supported With Ie11 In Standards Mode"