[whatwg/url] Is URL parser supposed to handle `https://blah.com`? (#261)

In walking through the URL parser state machine (https://url.spec.whatwg.org/#concept-basic-url-parser), it seems to me that on an input of "https://blah.com", the parser will return a URL whose scheme is "https" and whose other components (including hostname) are empty.

Here's the sequence of states I see happening:
1. scheme start state
2. scheme state
3. path or authority state
4. authority state
=> at this point we eat up all the characters, adding them to `buffer` one by one. After eating the last character, we exit step 11 all together (because `c` is EOF) and do not re-execute the authority state, meaning we never reach step 2.2 of authority state that continues on to host state.

Am I missing something and/or is this intentional?

-- 
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/261

Received on Thursday, 2 March 2017 07:42:56 UTC