- From: Rimas <notifications@github.com>
- Date: Thu, 23 Feb 2017 06:37:51 -0800
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 23 February 2017 14:38:49 UTC
In the ["file host state"](https://url.spec.whatwg.org/#file-host-state) there are steps where <var>host</var> is set to the empty string, but in the ["path state"](https://url.spec.whatwg.org/#path-state) at some step <var>host</var> is tested for null (and also set to null). Because of this difference parser will report [validation error](https://url.spec.whatwg.org/#validation-error) for such valid URL: `file:///C:/path` In the ["file host state"](https://url.spec.whatwg.org/#file-host-state) <var>host</var> is set to empty string, but in the ["path state"](https://url.spec.whatwg.org/#path-state): "If url’s host is non-null, validation error." So I think, <var>host</var> must be set to (and tested for) the same value in both cases; Maybe this value must be null? -- 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/258
Received on Thursday, 23 February 2017 14:38:49 UTC