{"action":"closed","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/3400","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/3400/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/3400/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/3400/events","html_url":"https://github.com/driftyco/ionic/issues/3400","id":64301923,"number":3400,"title":"Issue with Ionic under MobileFirst involving self.platforms","user":{"login":"cfjedimaster","id":393660,"avatar_url":"https://avatars.githubusercontent.com/u/393660?v=3","gravatar_id":"","url":"https://api.github.com/users/cfjedimaster","html_url":"https://github.com/cfjedimaster","followers_url":"https://api.github.com/users/cfjedimaster/followers","following_url":"https://api.github.com/users/cfjedimaster/following{/other_user}","gists_url":"https://api.github.com/users/cfjedimaster/gists{/gist_id}","starred_url":"https://api.github.com/users/cfjedimaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfjedimaster/subscriptions","organizations_url":"https://api.github.com/users/cfjedimaster/orgs","repos_url":"https://api.github.com/users/cfjedimaster/repos","events_url":"https://api.github.com/users/cfjedimaster/events{/privacy}","received_events_url":"https://api.github.com/users/cfjedimaster/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-25T15:42:43Z","updated_at":"2015-03-25T15:54:45Z","closed_at":"2015-03-25T15:54:45Z","body":"I'm not sure I can make a codepen out of this, nor am I sure this is an Ionic issue versus MobileFirst, but I figured I'd log it and let yall make the call.\r\n\r\nSometimes (not sure of the exact repro case) when running an Ionic app in the Mobile Browser Simulator (think of it like MobileFirst's version of Ripple), I will see this in the console:\r\n\r\nUncaught InvalidCharacterError: Failed to execute 'add' on 'DOMTokenList': The token provided ('platform-ios - iphone') contains HTML space characters, which are not valid in tokens.\r\n\r\nThis is coming from ionic.bundle.js line 2136. Which is:\r\n\r\nrequestAnimationFrame(function() {\r\n        // only add to the body class if we got platform info\r\n        for (var i = 0; i < self.platforms.length; i++) {\r\n          document.body.classList.add('platform-' + self.platforms[i]);\r\n        }\r\n      });\r\n\r\nAnd when debugging, I can see that one value of self.platforms is \"ios - iphone\". I'm not sure how that got set, and maybe it is MobileFirst sending a 'bad' value to Ionic, but maybe it is something Ionic could handle?\r\n"}}