Re: [whatwg/url] Record whether the URL parser removed newlines. (#284)

> Right, thanks. I guess I meant
>
> ```javascript
> new WebSocket(`wss://example.com/foo\nbar>baz`);
> ```
>
> will fail. Again, is this desired behavior?

I think so, yes. If we're going to block raw `\n` and `<` in one context, it makes sense to block them in all contexts. Otherwise we're just introducing confusing distinctions.

> Are there tests for it, and other cases like it?

I've added fetch tests to Chrome's tentative implementation of this behavior. Should be upstreamed shortly.



-- 
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/pull/284#issuecomment-303691004

Received on Wednesday, 24 May 2017 10:58:47 UTC