[whatwg/url] What should resolveRelativeUrl(base=..., relative="10.0.0.7:8080/foo.html") return? (#464)

What should be the result of resolving a relative URL if:
- base url = `file:///some/dir/ip-relative.html`
- relative string = `10.0.0.7:8080/foo.html`

It seems that Firefox resolves this as `file:///some/dir/10.0.0.7:8080/foo.html`, but Chrome fails the resolution and returns an invalid URL, because it thinks that the `10.0.0.7` is a scheme and therefore the "relative string" represents an absolute URL.  FWIW, according to https://url.spec.whatwg.org/#scheme-state `10.0.0.7` does seem like a valid scheme.

This is a follow-up to https://crbug.com/530123

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

Received on Thursday, 27 February 2020 23:43:33 UTC