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)

I haven't had time to understand the issue yet.

Can't we consider that encoding a trailing space is a user's responsibility, instead of URL Standard's responsibility?

For example, the following is a bad practice. Spaces can be trimmed anytime after some accidental operations.

> new URL("data:blah  #hello")

This is a good practice. We encourage users to escape trailing spaces to avoid an accidental removal.

> new URL("data:blah %20#hello");

Please correct me if I don't understand the issue.



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

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

Received on Thursday, 21 September 2023 05:59:16 UTC