- From: Charles Samborski <notifications@github.com>
- Date: Tue, 16 Oct 2018 12:00:35 -0700
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 16 October 2018 19:00:58 UTC
The current spec requires to produce a validation error if a newline or tab is encountered, and remove them from the input:
https://github.com/whatwg/url/blob/49060c74d3047602a572f9e88a6a1101f4fd32f3/url.bs#L1472-L1474
This contradicts the behavior observed in Firefox, Chrome and Edge:
```js
const url = new URL("http://www.example.com/")
url.pathname = 'foo\nbar';
url.href
```
- Node and WHATWG URL: `"http://www.example.com/foobar"`
- Firefox, Chrome and Edge: `"http://www.example.com/foo%0Abar"`
```js
const url = new URL("http://www.example.com/")
url.pathname = 'foo\tbar';
url.href
```
- Node and WHATWG URL: `"http://www.example.com/foobar"`
- Firefox, Chrome and Edge: `"http://www.example.com/foo%09bar"`
This issue was originally reported for Node: https://github.com/nodejs/node/issues/23696
--
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/419
Received on Tuesday, 16 October 2018 19:00:58 UTC