Re: [whatwg/url] Add string UTF-8 percent encode (#503)

I think it would help to have an example table with clear inputs and outputs. Something like:

Here is a summary, by way of example, of these various operations:

|Operation|Example Input|Example Output|
|---------|-------------|--------------|
|percent encode|0x23|"`%23`"|
|percent decode|\``blah`\`|\``blah`\`|
|string percent decode|"`blah`"|\``blah`\`|
|UTF-8 percent encode with userinfo percent-encode set|U+LARGENUMBER|"`%12%34`"|
|UTF-8 percent encode with userinfo percent-encode set|"`blah`"|"`%blah%blah`"|

I think having these examples of inputs and outputs, which use the appropriate typography, will convey more than simply stating the return types.

-- 
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/503#issuecomment-626834077

Received on Monday, 11 May 2020 17:14:26 UTC