Re: [whatwg/url] Consider percent-encoding more characters in "fragment state" (#344)

> which would probably make it difficult to put valid JSON in fragments.

Well, without escaping the `"`, right.  I guess at that point you're unescaping, so even if the `{` and `}` were escaped they'd get unescaped.  I did check that encode/decodeURIComponent escape/unescape those bits.

As for comfort... Basically, I'm comfortable encoding anything that at least one major browser encodes.  I'm a little worried about encoding things that none of them encode.  I'm very worried about `?`, given that it's long been explicitly specced as OK in fragments.

-- 
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/344#issuecomment-330830309

Received on Wednesday, 20 September 2017 12:02:22 UTC