Ticket #6919 (closed enhancement: wontfix)
$.each looping over a string produces different results in IE8 Compatibility Mode
|Reported by:||bkorte||Owned by:|
It's simplest to explain in code:
Safari 5.0.1 on OSX 10.6.4:
0 "s" 1 "t" 2 "r" 3 "i" 4 "n" 5 "g"
IE8 on Windows 7 running in Compatibility Mode (as well as IE7 mode chosen direct from the developer tools inspector):
LOG: 0undefined LOG: 1undefined LOG: 2undefined LOG: 3undefined LOG: 4undefined LOG: 5undefined
Simple workaround is:
c = (c === undefined) ? val.charAt(i) : c;
Expected result would be what Safari does.
- Status changed from new to closed
- Type changed from bug to enhancement
- Resolution set to invalid
- Status changed from closed to reopened
- Resolution invalid deleted