{"action":"created","issue":{"url":"https://api.github.com/repos/whatwg/url/issues/167","repository_url":"https://api.github.com/repos/whatwg/url","labels_url":"https://api.github.com/repos/whatwg/url/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/url/issues/167/comments","events_url":"https://api.github.com/repos/whatwg/url/issues/167/events","html_url":"https://github.com/whatwg/url/issues/167","id":192957266,"number":167,"title":"IPv4 number parser on \"0x0a\"","user":{"login":"nlevitt","id":423176,"avatar_url":"https://avatars.githubusercontent.com/u/423176?v=3","gravatar_id":"","url":"https://api.github.com/users/nlevitt","html_url":"https://github.com/nlevitt","followers_url":"https://api.github.com/users/nlevitt/followers","following_url":"https://api.github.com/users/nlevitt/following{/other_user}","gists_url":"https://api.github.com/users/nlevitt/gists{/gist_id}","starred_url":"https://api.github.com/users/nlevitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlevitt/subscriptions","organizations_url":"https://api.github.com/users/nlevitt/orgs","repos_url":"https://api.github.com/users/nlevitt/repos","events_url":"https://api.github.com/users/nlevitt/events{/privacy}","received_events_url":"https://api.github.com/users/nlevitt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-12-01T20:43:43Z","updated_at":"2016-12-09T03:12:34Z","closed_at":null,"body":"https://url.spec.whatwg.org/#ipv4-number-parser\r\n\r\nI think there's a bug in the spec here.\r\n\r\n**```input=\"0x0a\"```**\r\n1. Let R be 10.\r\n    **```R = 10```**\r\n2. If input contains at least two code points and the first two code points are either \"0x\" or \"0X\", run these substeps:\r\n   1. Set syntaxViolationFlag.\r\n   2. Remove the first two code points from input.\r\n        **```input = \"0a\"```**\r\n   3. Set R to 16.\r\n        **```R = 16```**\r\n3. If input is the empty string, return zero.\r\n4. Otherwise, if input contains at least two code points and the first code point is \"0\", run these substeps:\r\n   _**we follow this code path**_\r\n   1. Set syntaxViolationFlag.\r\n   2. Remove the first code point from input.\r\n        **```input = \"a\"```**\r\n   3. Set R to 8.\r\n        **```R = 8```**\r\n5. If input contains a code point that is not a radix-R digit, and return failure.\r\n    _**return failure**_\r\n6. Return the mathematical integer value that is represented by input in radix-R notation, using ASCII hex digits for digits with values 0 through 15.\r\n"},"comment":{"url":"https://api.github.com/repos/whatwg/url/issues/comments/265922622","html_url":"https://github.com/whatwg/url/issues/167#issuecomment-265922622","issue_url":"https://api.github.com/repos/whatwg/url/issues/167","id":265922622,"user":{"login":"nlevitt","id":423176,"avatar_url":"https://avatars.githubusercontent.com/u/423176?v=3","gravatar_id":"","url":"https://api.github.com/users/nlevitt","html_url":"https://github.com/nlevitt","followers_url":"https://api.github.com/users/nlevitt/followers","following_url":"https://api.github.com/users/nlevitt/following{/other_user}","gists_url":"https://api.github.com/users/nlevitt/gists{/gist_id}","starred_url":"https://api.github.com/users/nlevitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlevitt/subscriptions","organizations_url":"https://api.github.com/users/nlevitt/orgs","repos_url":"https://api.github.com/users/nlevitt/repos","events_url":"https://api.github.com/users/nlevitt/events{/privacy}","received_events_url":"https://api.github.com/users/nlevitt/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T03:12:34Z","updated_at":"2016-12-09T03:12:34Z","body":"Pull request looks good to me."}}
{"actor":{"display_login":"nlevitt"}}