Re: [whatwg/url] query state: Parser generates invalid URLs (#379)

@annevk, I'd agree that this is a case of Garbage-In-Garbage-Out, if it would only happen when parsing invalid URLs. However, it also happens when changing components of an URL object:

```javascript
x = new URL('http://localhost')
x.search = 'a#{}'
x.href # "http://localhost/?a%23{}"
```

Also, the browsers don't 100% follow the spec here - for example Chrome escapes ```^ and |``` in paths, while the standard says it should not. I'll do more tests to check how browsers behave on all chars in all places.

-- 
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/379#issuecomment-380380274

Received on Wednesday, 11 April 2018 09:01:30 UTC