{"action":"created","issue":{"url":"https://api.github.com/repos/whatwg/url/issues/80","repository_url":"https://api.github.com/repos/whatwg/url","labels_url":"https://api.github.com/repos/whatwg/url/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/url/issues/80/comments","events_url":"https://api.github.com/repos/whatwg/url/issues/80/events","html_url":"https://github.com/whatwg/url/issues/80","id":128188871,"number":80,"title":"Confused about the constructor argument types","user":{"login":"onlywei","id":1470998,"avatar_url":"https://avatars.githubusercontent.com/u/1470998?v=3","gravatar_id":"","url":"https://api.github.com/users/onlywei","html_url":"https://github.com/onlywei","followers_url":"https://api.github.com/users/onlywei/followers","following_url":"https://api.github.com/users/onlywei/following{/other_user}","gists_url":"https://api.github.com/users/onlywei/gists{/gist_id}","starred_url":"https://api.github.com/users/onlywei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onlywei/subscriptions","organizations_url":"https://api.github.com/users/onlywei/orgs","repos_url":"https://api.github.com/users/onlywei/repos","events_url":"https://api.github.com/users/onlywei/events{/privacy}","received_events_url":"https://api.github.com/users/onlywei/received_events","type":"User","site_admin":false},"labels":[{"id":307165470,"url":"https://api.github.com/repos/whatwg/url/labels/good%20first%20bug","name":"good first bug","color":"bfe5bf","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-01-22T16:11:43Z","updated_at":"2016-10-28T14:03:56Z","closed_at":"2016-10-28T14:03:19Z","body":"So, the spec's constructor interface says:\r\n\r\n```\r\nConstructor(USVString url, optional USVString base)\r\n```\r\n\r\nHowever, right below that it says that both the `url` and `base` param will be run through the [basic-url-parser](https://url.spec.whatwg.org/#concept-basic-url-parser), which claims it can accept both `string input` and `URL url`.\r\n\r\nDoes this mean that the `URL()` constructor is also supposed to accept `URL` objects for its first and second arguments, in addition to `USVString`?"},"comment":{"url":"https://api.github.com/repos/whatwg/url/issues/comments/256928247","html_url":"https://github.com/whatwg/url/issues/80#issuecomment-256928247","issue_url":"https://api.github.com/repos/whatwg/url/issues/80","id":256928247,"user":{"login":"annevk","id":1544111,"avatar_url":"https://avatars.githubusercontent.com/u/1544111?v=3","gravatar_id":"","url":"https://api.github.com/users/annevk","html_url":"https://github.com/annevk","followers_url":"https://api.github.com/users/annevk/followers","following_url":"https://api.github.com/users/annevk/following{/other_user}","gists_url":"https://api.github.com/users/annevk/gists{/gist_id}","starred_url":"https://api.github.com/users/annevk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annevk/subscriptions","organizations_url":"https://api.github.com/users/annevk/orgs","repos_url":"https://api.github.com/users/annevk/repos","events_url":"https://api.github.com/users/annevk/events{/privacy}","received_events_url":"https://api.github.com/users/annevk/received_events","type":"User","site_admin":false},"created_at":"2016-10-28T14:03:56Z","updated_at":"2016-10-28T14:03:56Z","body":"@onlywei thank you for the report!"}}
{"actor":{"display_login":"annevk"}}