{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/selection-api/issues/30","repository_url":"https://api.github.com/repos/w3c/selection-api","labels_url":"https://api.github.com/repos/w3c/selection-api/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/w3c/selection-api/issues/30/comments","events_url":"https://api.github.com/repos/w3c/selection-api/issues/30/events","html_url":"https://github.com/w3c/selection-api/issues/30","id":51566598,"number":30,"title":"Make some arguments optional","user":{"login":"foolip","id":498917,"avatar_url":"https://avatars.githubusercontent.com/u/498917?v=3","gravatar_id":"","url":"https://api.github.com/users/foolip","html_url":"https://github.com/foolip","followers_url":"https://api.github.com/users/foolip/followers","following_url":"https://api.github.com/users/foolip/following{/other_user}","gists_url":"https://api.github.com/users/foolip/gists{/gist_id}","starred_url":"https://api.github.com/users/foolip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foolip/subscriptions","organizations_url":"https://api.github.com/users/foolip/orgs","repos_url":"https://api.github.com/users/foolip/repos","events_url":"https://api.github.com/users/foolip/events{/privacy}","received_events_url":"https://api.github.com/users/foolip/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2014-12-10T14:52:51Z","updated_at":"2016-03-01T06:47:25Z","closed_at":"2016-03-01T06:47:12Z","body":"In both WebKit and Blink, the arguments of some functions are optional. That includes some nonsensical cases like \"void addRange([Default=Undefined] optional Range range);\" but also some arguments that have sensible defaults:\r\ncollapse's offset argument (0)\r\nextend's offset argument (0)\r\ncontainsNode's allowPartialContainment argument (false)\r\n\r\nsetBaseAndExtent also has all optional arguments, but that makes less sense.\r\n\r\nConsider making at least the first three cases optional, as it does not seem worthwhile investigating the Web compat impact of making them non-optional."},"comment":{"url":"https://api.github.com/repos/w3c/selection-api/issues/comments/190577357","html_url":"https://github.com/w3c/selection-api/issues/30#issuecomment-190577357","issue_url":"https://api.github.com/repos/w3c/selection-api/issues/30","id":190577357,"user":{"login":"rniwa","id":285965,"avatar_url":"https://avatars.githubusercontent.com/u/285965?v=3","gravatar_id":"","url":"https://api.github.com/users/rniwa","html_url":"https://github.com/rniwa","followers_url":"https://api.github.com/users/rniwa/followers","following_url":"https://api.github.com/users/rniwa/following{/other_user}","gists_url":"https://api.github.com/users/rniwa/gists{/gist_id}","starred_url":"https://api.github.com/users/rniwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rniwa/subscriptions","organizations_url":"https://api.github.com/users/rniwa/orgs","repos_url":"https://api.github.com/users/rniwa/repos","events_url":"https://api.github.com/users/rniwa/events{/privacy}","received_events_url":"https://api.github.com/users/rniwa/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T06:47:24Z","updated_at":"2016-03-01T06:47:24Z","body":"Thanks! merged."}}