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

As it is, IE6 and IE7 will throw script errors from these two 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