pivotal/jasmine — pull request #646 by cobbdb (2014-08-03 09:16:59+00:00)
Title: Allow possible support for IE7

As it is, IE6 and IE7 will throw script errors from the following lines. After this change is made, all a tool such as grunt-contrib-jasmine would have to do is provide json2.js and a polyfill for querySelector, and then it will support Jasmine testing in IE7 no problem at all. I've got this hooked up locally and it works great using https://www.npmjs.org/package/polyfill-queryselector

I am also making a pr with grunt-contrib-jasmine for json2.js and the polyfill, but it will be much easier to push this effort forward once the core jasmine files are updated.

createTextNode only takes one arg, the text data so no need to use apply there. Same for createElement - it only takes one arg which is the tag name. For some reason IE6 and IE7 throw script errors when using apply with these two methods.
https://developer.mozilla.org/en-US/docs/Web/API/document.createTextNode
https://developer.mozilla.org/en-US/docs/Web/API/document.createElement

Polyfilling document.querySelector will break if using getContainer(), since that method returns document.body. It seems as though document.querySelector is a more common use case as well, but the reason for the change is to avoid script errors in IE6 and IE7.
https://developer.mozilla.org/en-US/docs/Web/API/document.querySelector