Skip to content

Commit c70945d

Browse files
Jungku Leetargos
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 f9c2a3f commit c70945d

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
@@ -1726,18 +1726,19 @@ The WHATWG algorithm defines four "percent-encode sets" that describe ranges
17261726
of characters that must be percent-encoded:
17271727
17281728
* The _C0 control percent-encode set_ includes code points in range U+0000 to
1729-
U+001F (inclusive) and all code points greater than U+007E.
1729+
U+001F (inclusive) and all code points greater than U+007E (\~).
17301730
17311731
* The _fragment percent-encode set_ includes the _C0 control percent-encode set_
1732-
and code points U+0020, U+0022, U+003C, U+003E, and U+0060.
1732+
and code points U+0020 SPACE, U+0022 ("), U+003C (<), U+003E (>),
1733+
and U+0060 (\`).
17331734
17341735
* The _path percent-encode set_ includes the _C0 control percent-encode set_
1735-
and code points U+0020, U+0022, U+0023, U+003C, U+003E, U+003F, U+0060,
1736-
U+007B, and U+007D.
1736+
and code points U+0020 SPACE, U+0022 ("), U+0023 (#), U+003C (<), U+003E (>),
1737+
U+003F (?), U+0060 (\`), U+007B ({), and U+007D (}).
17371738
17381739
* The _userinfo encode set_ includes the _path percent-encode set_ and code
1739-
points U+002F, U+003A, U+003B, U+003D, U+0040, U+005B, U+005C, U+005D,
1740-
U+005E, and U+007C.
1740+
points U+002F (/), U+003A (:), U+003B (;), U+003D (=), U+0040 (@),
1741+
U+005B (\[) to U+005E(^), and U+007C (|).
17411742
17421743
The _userinfo percent-encode set_ is used exclusively for username and
17431744
passwords encoded within the URL. The _path percent-encode set_ is used for the

0 commit comments

Comments
 (0)