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

OK, these are the results for Chrome, Firefox, Edge: https://docs.google.com/spreadsheets/d/1mSl2N2Wrc7ZdKy2ArhLg0t3EHI2DOdHaDyWMZQByHE4/edit?usp=sharing

![image](https://user-images.githubusercontent.com/9737/38610087-194cc744-3d80-11e8-8449-888e5739245a.png)

I was testing with:
```
U = () => new URL('http://localhost')
s = 'x "#%<>?[\\]^`{|}$'
u = U(); u.pathname = s; u.href
u = U(); u.search = s; u.href
u = U(); u.hash = s; u.href
```

On Edge, `u.pathname = s` and `u.search = s` were throwing errors, so I had to check these character-by-character with loops:
```
for (let c of s) {try { u = U(); u.pathname = 'x' + c + 'x'; console.log(c, u.href); } catch (e) { console.log(c, e) }}
for (let c of s) {try { u = U(); u.search   = 'x' + c + 'x'; console.log(c, u.href); } catch (e) { console.log(c, e) }}
```

-- 
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-380399514

Received on Wednesday, 11 April 2018 10:08:01 UTC