{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/3486","labels_url":"https://api.github.com/repos/angular/angular.js/issues/3486/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/3486/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/3486/events","html_url":"https://github.com/angular/angular.js/issues/3486","id":17723260,"number":3486,"title":"Checking userAgent is not enough to determine, whether createEvent is defined","user":{"login":"apsk","id":1418476,"avatar_url":"https://avatars.githubusercontent.com/u/1418476?v=3","gravatar_id":"","url":"https://api.github.com/users/apsk","html_url":"https://github.com/apsk","followers_url":"https://api.github.com/users/apsk/followers","following_url":"https://api.github.com/users/apsk/following{/other_user}","gists_url":"https://api.github.com/users/apsk/gists{/gist_id}","starred_url":"https://api.github.com/users/apsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apsk/subscriptions","organizations_url":"https://api.github.com/users/apsk/orgs","repos_url":"https://api.github.com/users/apsk/repos","events_url":"https://api.github.com/users/apsk/events{/privacy}","received_events_url":"https://api.github.com/users/apsk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular.js/labels/component:%20scenario%20runner","name":"component: scenario runner","color":"bd77d9"},{"url":"https://api.github.com/repos/angular/angular.js/labels/frequency:%20low","name":"frequency: low","color":"bfe5bf"},{"url":"https://api.github.com/repos/angular/angular.js/labels/type:%20bug","name":"type: bug","color":"000000"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular/angular.js/milestones/27","html_url":"https://github.com/angular/angular.js/milestones/Backlog","labels_url":"https://api.github.com/repos/angular/angular.js/milestones/27/labels","id":489171,"number":27,"title":"Backlog","description":"Holds the backlog of issues and pull requests that have been triaged.\r\n\r\nBefore assigning items to this milestone they should be labelled, at the very least with the correct \"type\" label (i.e. \"issue\", \"pr\", \"bug\", \"regression\", \"chore\", \"docs\", etc).  Preferably you should also check for duplicate issues/PRs, note CLA status and assign \"complexity\" and \"impact\" labels too.","creator":{"login":"IgorMinar","id":216296,"avatar_url":"https://avatars.githubusercontent.com/u/216296?v=3","gravatar_id":"","url":"https://api.github.com/users/IgorMinar","html_url":"https://github.com/IgorMinar","followers_url":"https://api.github.com/users/IgorMinar/followers","following_url":"https://api.github.com/users/IgorMinar/following{/other_user}","gists_url":"https://api.github.com/users/IgorMinar/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorMinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorMinar/subscriptions","organizations_url":"https://api.github.com/users/IgorMinar/orgs","repos_url":"https://api.github.com/users/IgorMinar/repos","events_url":"https://api.github.com/users/IgorMinar/events{/privacy}","received_events_url":"https://api.github.com/users/IgorMinar/received_events","type":"User","site_admin":false},"open_issues":673,"closed_issues":1028,"state":"open","created_at":"2013-11-18T23:30:35Z","updated_at":"2015-11-06T22:09:07Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2013-08-07T00:02:19Z","updated_at":"2015-11-06T22:09:07Z","closed_at":"2015-11-06T22:09:07Z","body":"Here's the problematic place: [ngScenario/browserTrigger.js#L64](https://github.com/angular/angular.js/blob/master/src/ngScenario/browserTrigger.js#L64)\r\nThis goes wrong, when IE >= 9 is used in IE < 9 modes,\r\nbecause createEvent is undefined, but userAgent is still > 8.\r\nMaybe it's better to do something like\r\n```javascript\r\nif (msie < 9 || !document.createEvent) { ...\r\n```\r\nor even\r\n\r\n```javascript\r\nif (!document.createEvent) { ...\r\n```\r\nor to change setting of msie in such a way that it will reflect current browser mode, not just userAgent."}}