[whatwg/url] Percent-encode additional characters in "fragment state". (#347)

Currently, we percent-encode characters in "fragment state" using the C0
control percent-encode set. Firefox encodes more than that, and it seems
reasonable to align around that behavior for reasons spelled out in #291
and the comments of #344.

This patch adds a new "fragment percent-encode set" which contains the
C0 control percent-encode set, along with:

* 0x22 (")
* 0x3C (<)
* 0x3E (>)
* 0x60 (`)

Closes #344.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/url/pull/347

-- Commit Summary --

  * Percent-encode additional characters in "fragment state".

-- File Changes --

    M url.bs (5)

-- Patch Links --

https://github.com/whatwg/url/pull/347.patch
https://github.com/whatwg/url/pull/347.diff

-- 
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/347

Received on Monday, 9 October 2017 12:58:29 UTC