{"action":"created","issue":{"url":"https://api.github.com/repos/jonstipe/number-polyfill/issues/21","labels_url":"https://api.github.com/repos/jonstipe/number-polyfill/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/jonstipe/number-polyfill/issues/21/comments","events_url":"https://api.github.com/repos/jonstipe/number-polyfill/issues/21/events","html_url":"https://github.com/jonstipe/number-polyfill/issues/21","id":23539707,"number":21,"title":"Not working on ie version 11","user":{"login":"alhoseany","id":681059,"avatar_url":"https://avatars.githubusercontent.com/u/681059?v=3","gravatar_id":"","url":"https://api.github.com/users/alhoseany","html_url":"https://github.com/alhoseany","followers_url":"https://api.github.com/users/alhoseany/followers","following_url":"https://api.github.com/users/alhoseany/following{/other_user}","gists_url":"https://api.github.com/users/alhoseany/gists{/gist_id}","starred_url":"https://api.github.com/users/alhoseany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alhoseany/subscriptions","organizations_url":"https://api.github.com/users/alhoseany/orgs","repos_url":"https://api.github.com/users/alhoseany/repos","events_url":"https://api.github.com/users/alhoseany/events{/privacy}","received_events_url":"https://api.github.com/users/alhoseany/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2013-12-01T17:23:55Z","updated_at":"2015-07-09T23:02:21Z","closed_at":null,"body":"hi, i tried the polyfill and working great but does not work in internet explorer version 11"},"comment":{"url":"https://api.github.com/repos/jonstipe/number-polyfill/issues/comments/120170415","html_url":"https://github.com/jonstipe/number-polyfill/issues/21#issuecomment-120170415","issue_url":"https://api.github.com/repos/jonstipe/number-polyfill/issues/21","id":120170415,"user":{"login":"zane-techempower","id":9422070,"avatar_url":"https://avatars.githubusercontent.com/u/9422070?v=3","gravatar_id":"","url":"https://api.github.com/users/zane-techempower","html_url":"https://github.com/zane-techempower","followers_url":"https://api.github.com/users/zane-techempower/followers","following_url":"https://api.github.com/users/zane-techempower/following{/other_user}","gists_url":"https://api.github.com/users/zane-techempower/gists{/gist_id}","starred_url":"https://api.github.com/users/zane-techempower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zane-techempower/subscriptions","organizations_url":"https://api.github.com/users/zane-techempower/orgs","repos_url":"https://api.github.com/users/zane-techempower/repos","events_url":"https://api.github.com/users/zane-techempower/events{/privacy}","received_events_url":"https://api.github.com/users/zane-techempower/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T23:02:21Z","updated_at":"2015-07-09T23:02:21Z","body":"The issue is indeed on line 12 where the script does a naive check to see if the browser is indeed IE. The issue is that this fails on some versions of IE, I am using a function that does a better job from the testing that I've done (IE 8 and 11).\r\n\r\nOn line 12 of `number-polyfill.js` (un-minified) change:\r\n\r\n```if (i.type === \"text\") {```\r\n\r\nto\r\n\r\n```if (detectIE()) {```\r\n\r\nWhere `detectIE()` is a working IE-detecting function. Below is the one I am using which includes IE 12 (\"Edge\") that I found over [here on stackoverflow](http://stackoverflow.com/questions/19999388/jquery-check-if-user-is-using-ie). Feel free to remove the references to variable `i` as well, that tester element is not needed.\r\n\r\n```JavaScript\r\nfunction detectIE() {\r\n  var ua = window.navigator.userAgent;\r\n  var msie = ua.indexOf('MSIE ');\r\n\r\n  // IE 10 or older => return version number\r\n  if (msie > 0) {\r\n    return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);\r\n  }\r\n  \r\n  var trident = ua.indexOf('Trident/');\r\n  // IE 11 => return version number\r\n  if (trident > 0) {\r\n    var rv = ua.indexOf('rv:');\r\n    return parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10);\r\n  }\r\n\r\n  var edge = ua.indexOf('Edge/');\r\n  // IE 12 => return version number\r\n  if (edge > 0) {\r\n    return parseInt(ua.substring(edge + 5, ua.indexOf('.', edge)), 10);\r\n  }\r\n\r\n    return false;\r\n}\r\n```"}}