Ticket #10831 (closed bug: invalid)
inArray is broken on IE7 and 8 at least when called with just 2 params
|Reported by:||rr.rosas@…||Owned by:||rr.rosas@…|
I've experienced an issue with IE 7 and 8 where $.inArray(elem, array) returned -1 while $.inArray(elem, array, 0) returned 3.
It turns out that Array.prototype.indexOf.call(array, elem, undefined) returns -1 in some IE7/8 mode (not sure if in Quirks mode or the opposite). jQuery should change this to:
Array.prototype.indexOf.call(array, elem, i === undefined ? 0 : i)
Or something similar.
- Owner set to rr.rosas@…
- Status changed from new to pending
- Component changed from unfiled to core