Re: [whatwg/url] It's not immediately clear that "URL syntax" and "URL parser" conflict (#118)

> Conformance checkers can complain all they want

https://checker.html5.org/ does, and I respectfully disagree that it is weird or not useful.

Another example where a syntax violation is useful is U+0020 in a URL, because in some HTML attributes (like `<a ping>`, `itemtype`, `<img srcset>`) use space-separated URLs (or in the case of `srcset`, a microsyntax where a space marks the end of the URL). While a URL like `http://example.org/foo bar` works in `<a href>`, it means something else in these other contexts, so to avoid problems when copying URLs between contexts it is useful if conformance checkers give an error message for whitespace in a URL in any context that expects URLs.

-- 
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/118#issuecomment-276313326

Received on Tuesday, 31 January 2017 09:20:45 UTC