Open Arlorean opened 11 years ago
I just noticed using the latest source fails to detect IE11 from its user agent string:
Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; MDDCJS; rv:11.0) like Gecko
This makes it fail in miniframework.js on this line:
cc.Browser.type = (function () {
var browserTypes = cc.Browser.ua.match(/micromessenger|qqbrowser|mqqbrowser|ucbrowser|360browser|baidubrowser|maxthon|ie|opera|firefox/) || cc.Browser.ua.match(/chrome|safari/);
if (browserTypes.length > 0) { // browserTypes returns null here <-----
Update: I've committed a fix locally that looks for Gecko in the ua string as suggested here but I don't have permission to add it to the core project: http://www.nczonline.net/blog/2013/03/27/internet-explorer-11s-user-agent-string-what-does-it-mean/
I realize this is probably more a problem with IE11 but I thought I'd log the results of running the samples/tests. The console in IE11 (Windows 8.1 Preview) shows a few errors that it would be good to workaround or at least investigate: