- From: Domenic Denicola <notifications@github.com>
- Date: Thu, 01 Sep 2022 19:46:56 -0700
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 2 September 2022 02:47:08 UTC
It's unclear if people here are aware, but the spec already gives a succinct grammar-like definition of "valid URL": see https://url.spec.whatwg.org/#url-writing . That is what [the first reply comment in this thread](https://github.com/whatwg/url/issues/479#issuecomment-619261520) was asking about. Note that, as explained in https://url.spec.whatwg.org/#writing , this is unrelated to what URLs are accepted by software, because software needs to parse URLs, not just perform the `string -> boolean` validation algorithm which grammars enable. But might be useful or interesting for some of the people who have been commenting recently; I'm not sure. (However, there's a long-standing issue that the spec actually provides *two* ways of determining whether an input string is valid or not, and it seems unlikely to me that they are the same... I've just opened a tracking issue for that at https://github.com/whatwg/url/issues/704.) -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/url/issues/479#issuecomment-1235008019 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/url/issues/479/1235008019@github.com>
Received on Friday, 2 September 2022 02:47:08 UTC