{"action":"created","issue":{"url":"https://api.github.com/repos/unshiftio/url-parse/issues/114","repository_url":"https://api.github.com/repos/unshiftio/url-parse","labels_url":"https://api.github.com/repos/unshiftio/url-parse/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/unshiftio/url-parse/issues/114/comments","events_url":"https://api.github.com/repos/unshiftio/url-parse/issues/114/events","html_url":"https://github.com/unshiftio/url-parse/issues/114","id":304110404,"number":114,"title":"Resolve relative urls using HTML <base>","user":{"login":"OmgImAlexis","id":6525926,"avatar_url":"https://avatars2.githubusercontent.com/u/6525926?v=4","gravatar_id":"","url":"https://api.github.com/users/OmgImAlexis","html_url":"https://github.com/OmgImAlexis","followers_url":"https://api.github.com/users/OmgImAlexis/followers","following_url":"https://api.github.com/users/OmgImAlexis/following{/other_user}","gists_url":"https://api.github.com/users/OmgImAlexis/gists{/gist_id}","starred_url":"https://api.github.com/users/OmgImAlexis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OmgImAlexis/subscriptions","organizations_url":"https://api.github.com/users/OmgImAlexis/orgs","repos_url":"https://api.github.com/users/OmgImAlexis/repos","events_url":"https://api.github.com/users/OmgImAlexis/events{/privacy}","received_events_url":"https://api.github.com/users/OmgImAlexis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-10T22:18:23Z","updated_at":"2018-03-11T23:50:53Z","closed_at":null,"author_association":"NONE","body":"Is there a reason this only uses the current URL for resolving relative URLs instead of using the `<base>` element?\r\n\r\nhttps://github.com/unshiftio/url-parse/blob/master/index.js#L235\r\n\r\nRef: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base"},"comment":{"url":"https://api.github.com/repos/unshiftio/url-parse/issues/comments/372160941","html_url":"https://github.com/unshiftio/url-parse/issues/114#issuecomment-372160941","issue_url":"https://api.github.com/repos/unshiftio/url-parse/issues/114","id":372160941,"user":{"login":"OmgImAlexis","id":6525926,"avatar_url":"https://avatars2.githubusercontent.com/u/6525926?v=4","gravatar_id":"","url":"https://api.github.com/users/OmgImAlexis","html_url":"https://github.com/OmgImAlexis","followers_url":"https://api.github.com/users/OmgImAlexis/followers","following_url":"https://api.github.com/users/OmgImAlexis/following{/other_user}","gists_url":"https://api.github.com/users/OmgImAlexis/gists{/gist_id}","starred_url":"https://api.github.com/users/OmgImAlexis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OmgImAlexis/subscriptions","organizations_url":"https://api.github.com/users/OmgImAlexis/orgs","repos_url":"https://api.github.com/users/OmgImAlexis/repos","events_url":"https://api.github.com/users/OmgImAlexis/events{/privacy}","received_events_url":"https://api.github.com/users/OmgImAlexis/received_events","type":"User","site_admin":false},"created_at":"2018-03-11T23:50:53Z","updated_at":"2018-03-11T23:50:53Z","author_association":"NONE","body":"Since it should be available via `document.baseURI` could you not just add it onto the if statement? `if (document && document.baseURI){}`"}}
{"actor":{"display_login":"OmgImAlexis"}}