- From: Daijirō Wachi <notifications@github.com>
- Date: Sun, 05 Feb 2017 12:25:37 -0800
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 5 February 2017 20:26:12 UTC
Hello! Since the file state doesn't have a way to jump to the special authority slashes state, once the code enters into the file state, repeated slashes in the beginning of a file URL(e.g. `file://///foo/bar` should be `file:///foo/bar`) can't be ignored. To cover the case, it could be done by the following steps: 1. In scheme state, stop jumping to file state directly before checking special authority slashes state. 2. In special authority ignore slashes state, add file state check. 3. In scheme state, add file state check before jumping to special relative or authority state. Resources: + In the bs file, it can be like this: https://github.com/watilde/url/commit/8791dac09a223f7bb2f255ea860f9320ae30ec2f + Here is an example impl: https://github.com/watilde/node/commit/247f960f7125c1dfd24599a3800117d19e4ccb55 What do you think? -- 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/232
Received on Sunday, 5 February 2017 20:26:12 UTC