Skip to content

Commit 7428ebf

Browse files
Jungku LeeUlisesGascon
Jungku Lee
authored andcommitted
doc: update description for percent_encode sets in WHATWG API
PR-URL: #49258 Refs: https://url.spec.whatwg.org/#percent-encoded-bytes Reviewed-By: Daeyeon Jeong <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent bef900e commit 7428ebf

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

doc/api/url.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -1728,18 +1728,19 @@ The WHATWG algorithm defines four "percent-encode sets" that describe ranges
17281728
of characters that must be percent-encoded:
17291729
17301730
* The _C0 control percent-encode set_ includes code points in range U+0000 to
1731-
U+001F (inclusive) and all code points greater than U+007E.
1731+
U+001F (inclusive) and all code points greater than U+007E (\~).
17321732
17331733
* The _fragment percent-encode set_ includes the _C0 control percent-encode set_
1734-
and code points U+0020, U+0022, U+003C, U+003E, and U+0060.
1734+
and code points U+0020 SPACE, U+0022 ("), U+003C (<), U+003E (>),
1735+
and U+0060 (\`).
17351736
17361737
* The _path percent-encode set_ includes the _C0 control percent-encode set_
1737-
and code points U+0020, U+0022, U+0023, U+003C, U+003E, U+003F, U+0060,
1738-
U+007B, and U+007D.
1738+
and code points U+0020 SPACE, U+0022 ("), U+0023 (#), U+003C (<), U+003E (>),
1739+
U+003F (?), U+0060 (\`), U+007B ({), and U+007D (}).
17391740
17401741
* The _userinfo encode set_ includes the _path percent-encode set_ and code
1741-
points U+002F, U+003A, U+003B, U+003D, U+0040, U+005B, U+005C, U+005D,
1742-
U+005E, and U+007C.
1742+
points U+002F (/), U+003A (:), U+003B (;), U+003D (=), U+0040 (@),
1743+
U+005B (\[) to U+005E(^), and U+007C (|).
17431744
17441745
The _userinfo percent-encode set_ is used exclusively for username and
17451746
passwords encoded within the URL. The _path percent-encode set_ is used for the

0 commit comments

Comments
 (0)