Re: [whatwg/url] [Editorial] Guarantee that strings encoded with the component encode-set are valid opaque host strings. (#584)

Also, the existing note:

> This is used by  HTML  for  registerProtocolHandler() , and could also be used by other standards to percent-encode data that can then be embedded in a  URL  ’s  path , query , or  fragment.

Does not seem to be entirely true (I think?). Since "component" is not a superset of the "special query" encode set, wouldn't these strings need additional encoding when embedding in a special URL's query? I realise that the current definition aligns with implementations, but it would be nice if there was a way to add U+0027 ('), so that it becomes a true superset.

-- 
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/584#issuecomment-785245993

Received on Wednesday, 24 February 2021 17:33:12 UTC