[whatwg/url] "basic URL parser" doesn't special-case the empty string as input (#320)

If _input_ to "basic URL parser" is the empty string, the algorithm is able to make it all the way through to the end, since there is no special check for empty string. That essentially means it returns a URL with all default values.

If that URL is then passed to "URL serializer", it returns `:` (just U+003A (:)).

Is this all expected behavior? It seems to me like it wouldn't be.


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

Received on Saturday, 3 June 2017 17:41:10 UTC