From c70945ddc2f34d9da5030efda8b9c647ededc42f Mon Sep 17 00:00:00 2001 From: Jungku Lee Date: Wed, 23 Aug 2023 10:13:46 +0900 Subject: [PATCH] doc: update description for `percent_encode` sets in `WHATWG API` PR-URL: https://github.com/nodejs/node/pull/49258 Refs: https://url.spec.whatwg.org/#percent-encoded-bytes Reviewed-By: Daeyeon Jeong Reviewed-By: Luigi Pinca --- doc/api/url.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/doc/api/url.md b/doc/api/url.md index 90a4ae0b22f121..e7b27a97173572 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -1726,18 +1726,19 @@ The WHATWG algorithm defines four "percent-encode sets" that describe ranges of characters that must be percent-encoded: * The _C0 control percent-encode set_ includes code points in range U+0000 to - U+001F (inclusive) and all code points greater than U+007E. + U+001F (inclusive) and all code points greater than U+007E (\~). * The _fragment percent-encode set_ includes the _C0 control percent-encode set_ - and code points U+0020, U+0022, U+003C, U+003E, and U+0060. + and code points U+0020 SPACE, U+0022 ("), U+003C (<), U+003E (>), + and U+0060 (\`). * The _path percent-encode set_ includes the _C0 control percent-encode set_ - and code points U+0020, U+0022, U+0023, U+003C, U+003E, U+003F, U+0060, - U+007B, and U+007D. + and code points U+0020 SPACE, U+0022 ("), U+0023 (#), U+003C (<), U+003E (>), + U+003F (?), U+0060 (\`), U+007B ({), and U+007D (}). * The _userinfo encode set_ includes the _path percent-encode set_ and code - points U+002F, U+003A, U+003B, U+003D, U+0040, U+005B, U+005C, U+005D, - U+005E, and U+007C. + points U+002F (/), U+003A (:), U+003B (;), U+003D (=), U+0040 (@), + U+005B (\[) to U+005E(^), and U+007C (|). The _userinfo percent-encode set_ is used exclusively for username and passwords encoded within the URL. The _path percent-encode set_ is used for the