Re: [url] Confused about the constructor argument types (#80)

If you pass a `URL` object it will be stringified and end up working fine. We decided it was not worth it to also directly accept objects in the JavaScript API. Especially as in JavaScript URLs are typically passed around as strings.

The reason the URL parser takes an actual URL is because that is used by many other specifications.

Does that help?

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/80#issuecomment-173969019

Received on Friday, 22 January 2016 16:29:56 UTC