WICG/shared-storage

URL parser does not return whether a URL was valid

annevk opened this issue · 2 comments

annevk commented

I assume you mean to check for failure. If you actually meant validity you need something else. (Note that implementations sometimes confuse "validity" with "can parse" so you can't really rely on them.)

Thanks for pointing this out.

I am not entirely sure I follow what the difference is between a URL being valid and being able to be parsed. Could you please explain? Thank you.

I see now that there are examples of invalid URLs that are able to be parsed. So I will try to determine why the algorithm allows those to be parsed.