[whatwg/url] "If spaceAsPlus is true and byte is 0x20 (SP), t..." (#569)

The definition of "percent-encode after encoding" has:

> If `spaceAsPlus` is true and `byte` is 0x20 (SP), then append U+002B (+) to `output`. 

followed by code that adds either the isomorphic encoding or the percent encoding of `byte` to `output`.

This would imply that, with `spaceAsPlus` set to true, a space would be encoded to either "`+%20`" or "`+ `", depending on whether `percentEncodeSet` contains U+0020; rather than to "`+`" as browsers implement and the WPT tests expect as part of the `application/x-www-form-urlencoded` serialization.

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

Received on Sunday, 3 January 2021 20:30:28 UTC