[whatwg/url] Encode ^ in pathname (#607)

```js
u = new URL('http://abc.com/a^b');
console.log(u.pathname);
```

This gives "a%5Eb" in Chrome and Firefox, in addition to Go and Node.js. Ruby's `URI` fails to parse the URL with `^`, but is fine with %5E. However, the spec and Safari don't escape `^` at the moment.

Shall we escape `^` in paths? This will cause U+005E (^) to be moved from the userinfo set to path set.

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

Received on Friday, 21 May 2021 09:13:05 UTC