WICG / shared-storage

Explainer for proposed web platform Shared Storage API
Other
85 stars 18 forks source link

URL parser does not return whether a URL was valid #95

Open annevk opened 1 year ago

annevk commented 1 year ago

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.)

pythagoraskitty commented 1 year ago

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.

pythagoraskitty commented 1 year ago

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.