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

See https://jsdom.github.io/whatwg-url/#url=MTAuMC4wLjc6ODA4MC9mb28uaHRtbA==&base=ZmlsZTovLy9zb21lL2Rpci9pcC1yZWxhdGl2ZS5odG1s. It appears that the Firefox behavior is correct per spec.

To see why this is, look instead at [scheme start state](https://url.spec.whatwg.org/#scheme-start-state). That state restricts all schemes to start with an ASCII letter, and only switches to scheme state after that is ascertained. See also the informative description of [URL-scheme string](https://url.spec.whatwg.org/#url-scheme-string).

-- 
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#issuecomment-592296529

Received on Friday, 28 February 2020 03:37:23 UTC