Re: [whatwg/url] Add `URL.from(object)` constructor? (Issue #782)

@annevk @ljharb I have a couple ideas to fit it in without duplicating too much existing logic:

1. Set the initial state based i  optiobs and break out where each component would terminate (typically, this is close to where the parser's buffer is currently read).
2. For the pointer in the basic URL parser, read it from the first of `origin`/`host`/etc, set the initial state accordingly, and switch to the next section as needed (typically, this is close to where the parser's buffer is currently read).

Do you follow? And if so, thoughts?

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

Message ID: <whatwg/url/issues/782/1697857774@github.com>

Received on Tuesday, 29 August 2023 17:26:51 UTC