[whatwg/url] Should we unescape characters in path? (#606)

Consider

```html
<a href="https://jsdom.github.io/whatwg-url/">normal</a>,
<a href="https://jsdom.github.io/wh%61twg-url/">encoded 'a'</a>
```

In Chrome, both `a` elements have pathname "/whatwg-url/", indicating that the %61 was unescaped.

In Safari, the second `a` element has pathname "/wh%61twg-url/", but when navigating, `/whatwg-url/` is actually the destination.

In Firefox, the second `a` element has pathname "/wh%61twg-url/", and that pathname is used when navigating (resulting in a 404 error with GitHub pages). However, confusingly, the address bar in the browser chrome has the valid "whatwg-url", so if you go to the address bar and press Enter it works:

![image](https://user-images.githubusercontent.com/1538624/119112697-5c7f4180-b9f2-11eb-9838-cc3570a82bf4.png)

The spec currently doesn't do any unescaping. Should we?

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

Received on Friday, 21 May 2021 09:08:40 UTC