Re: [whatwg/url] URL serialiser does not produce idempotent strings if an opaque path has a trailing space and "exclude fragment" is true (Issue #784)

Right. The question is only about multiple trailing unescaped spaces. If the source only contains a single trailing space to begin with, the result would be the same.

| | Result |
|------------------------|--------------------------|
| Source                 | `data:blah blah  ?q`     |
| Escape single trailing | `data:blah blah %20?q`   |
| Escape all trailing    | `data:blah blah%20%20?q` |

I think escaping all trailing spaces leads to a simpler and more predictable outcome (and _fewer_ unescaped spaces, even if we can't escape all of them) -- but again, it's an edge case of an edge case of an edge case, so it's not extremely important to me.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/784#issuecomment-1711797611
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/issues/784/1711797611@github.com>

Received on Friday, 8 September 2023 14:51:49 UTC