NielsLeenheer/html5test — Issue #116: Browsers.iOS < 4.2 wouldn't work for non-iOS browsers
Author: alexyida
Created: 2012-01-05 18:22:39+00:00
State: open

for example in function canPlayType
canPlayType: function(t) {
/*
There is a bug in iOS 4.1 or earlier where probably and maybe are switched around.
This bug was reported and fixed in iOS 4.2
*/

if (Browsers.iOS < 4.2)
return this.element.canPlayType(t) == 'probably' || this.element.canPlayType(t) == 'maybe';
else
return this.element.canPlayType(t) == 'probably';
}

If I use Android browser, Browsers.iOS is false, and Browsers.iOS < 4.2 is going to be true. But you probably want Browsers.iOS < 4.2 to be false if I'm using non-iOS browser.