Re: [whatwg/url] Consider adding a constructor to make a URL from parts (#354)

> The problem is you can't build a URL step-by-step. Each part affects the whole.

What is meant by this? Lots of urls need to assembled from parts, `URL.from` would basically just be exposing the https://url.spec.whatwg.org/#url-representation .

If something passed to `URL.from` couldn't be serialized to a string then it should just be rejected.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/354#issuecomment-513698077

Received on Monday, 22 July 2019 08:40:20 UTC