Re: [whatwg/url] "Let pointer be a pointer to first code point in..." (#373)

Thanks but I'm still not sure what the spec is saying. Let's run the basic URL parser where `input`="" and `base`="https://www.example.com". Here's my reading:

After step 1, `url` is a new URL.

After step 10. "Let `pointer` be a pointer to first code point in `input`.",  `pointer` points to EOF.

In step 11. we enter the state machine at "scheme start state". `c` is undefined, so we set state to "no scheme state" and decrease `pointer` by one. Now the state machine step is over, so increase `pointer` by one and continue. `pointer` is again pointing to EOF, so the state machine is done. So we return `url`, which is  a new URL.

Is that correct as-written, and as-intended?

-- 
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/373#issuecomment-365446966

Received on Tuesday, 13 February 2018 23:57:28 UTC