[whatwg/url] Make it clearer that just about anything is parseable, probably via some examples (#119)

Not everyone realizes that pretty much everything that contains a `:` is parseable as a URL (and is in fact parsed as such by browsers). People don't realize this just looking at the parser algorithm, and people coming from the RFCs have very different expectations.

A series of examples illustrating how absurd inputs get parsed as URLs would be great. Maybe draw a few from https://github.com/w3c/web-platform-tests/blob/master/url/urltestdata.json and then link to that file for more details.

Also, I believe there are some examples where you can contain a `:` but parsing will still fail. I'd like to have those included as well, as I always fail to remember them (when trying to qualify my "anything with a `:`" statements).

Potentially related to #118.

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

Received on Monday, 9 May 2016 13:32:33 UTC