IE 8 doesn't have indexOf on arrays. Also, one toLowerCase() was missing. Oops.
This commit is not necessary on master but has been brought here to keep
tests similar in both branches.
(cherry-picked from
1b48eef4caf7fa3aba0ee1a3473e0d46487d20ea)
this.loadTests = function() {
var loadSwarm,
url = window.location.search,
- basicTests = url.substring( 1 ).split( "&" ).indexOf( "module=basic" ) > -1;
+ basicTests = jQuery.inArray( "module=basic", url.substring( 1 ).split( "&" ) ) > -1;
url = decodeURIComponent( url.slice( url.indexOf( "swarmURL=" ) + "swarmURL=".length ) );
loadSwarm = url && url.indexOf( "http" ) === 0;
// Support: IE 8 only
// IE 8 prints tag names in upper case.
- elem1.html(),
+ elem1.html().toLowerCase(),
"<div></div><b></b><span></span><a></a>",
".after/.before"
);