{"action":"created","issue":{"url":"https://api.github.com/repos/isaacs/sax-js/issues/147","labels_url":"https://api.github.com/repos/isaacs/sax-js/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/isaacs/sax-js/issues/147/comments","events_url":"https://api.github.com/repos/isaacs/sax-js/issues/147/events","html_url":"https://github.com/isaacs/sax-js/pull/147","id":58248253,"number":147,"title":"Ignore BOM at the beginning of the stream","user":{"login":"subzey","id":810582,"avatar_url":"https://avatars.githubusercontent.com/u/810582?v=3","gravatar_id":"","url":"https://api.github.com/users/subzey","html_url":"https://github.com/subzey","followers_url":"https://api.github.com/users/subzey/followers","following_url":"https://api.github.com/users/subzey/following{/other_user}","gists_url":"https://api.github.com/users/subzey/gists{/gist_id}","starred_url":"https://api.github.com/users/subzey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subzey/subscriptions","organizations_url":"https://api.github.com/users/subzey/orgs","repos_url":"https://api.github.com/users/subzey/repos","events_url":"https://api.github.com/users/subzey/events{/privacy}","received_events_url":"https://api.github.com/users/subzey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-19T18:27:33Z","updated_at":"2015-02-19T18:29:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/isaacs/sax-js/pulls/147","html_url":"https://github.com/isaacs/sax-js/pull/147","diff_url":"https://github.com/isaacs/sax-js/pull/147.diff","patch_url":"https://github.com/isaacs/sax-js/pull/147.patch"},"body":"BOM at the start of the stram should be ignored, as [spec says](http://www.w3.org/TR/REC-xml/#charencoding),\r\n> This [Byte Order Mark] is an encoding signature, not part of either the markup or the character data of the XML document.\r\n\r\nSo, there's a patch for this. And the test.\r\n\r\n`\\uFEFF` check is pretty straightforward here, I suppose, there's no sense in adding a special \"whitespaceOrBom\" character class or a special \"S.THE_VERY_BEGIN\" state for this special case."},"comment":{"url":"https://api.github.com/repos/isaacs/sax-js/issues/comments/75107905","html_url":"https://github.com/isaacs/sax-js/pull/147#issuecomment-75107905","issue_url":"https://api.github.com/repos/isaacs/sax-js/issues/147","id":75107905,"user":{"login":"subzey","id":810582,"avatar_url":"https://avatars.githubusercontent.com/u/810582?v=3","gravatar_id":"","url":"https://api.github.com/users/subzey","html_url":"https://github.com/subzey","followers_url":"https://api.github.com/users/subzey/followers","following_url":"https://api.github.com/users/subzey/following{/other_user}","gists_url":"https://api.github.com/users/subzey/gists{/gist_id}","starred_url":"https://api.github.com/users/subzey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subzey/subscriptions","organizations_url":"https://api.github.com/users/subzey/orgs","repos_url":"https://api.github.com/users/subzey/repos","events_url":"https://api.github.com/users/subzey/events{/privacy}","received_events_url":"https://api.github.com/users/subzey/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T18:29:06Z","updated_at":"2015-02-19T18:29:06Z","body":"Also, supposedly this fixes #138."}}