title: Compatibility of document.querySelectorAll in IE, Edge and Safari
body: <p>Reference answer: <a href="https://stackoverflow.com/a/38399344/5132413">https://stackoverflow.com/a/38399344/5132413</a></p>
  
  <p>Please refer <a href="https://stackoverflow.com/questions/38399089/ignoring-case-sensitiveness-in-queryselectorall/">my question</a> and the answer linked <a href="https://stackoverflow.com/a/38399344/5132413">above</a> works only in Firefox, Chrome, and Opera.</p>
  
  <p>I did some research and found that it (case insensitivity flag) isn't compatible. I need an equivalent in IE, Edge and Safari. </p>
  
  <pre><code>var divs = document.querySelectorAll('div[class^="foo" i]');
  </code></pre>