Skip to content

Commit 56a2a2e

Browse files
author
Jungku Lee
authored
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 164c57d commit 56a2a2e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

doc/api/url.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,18 +1740,19 @@ The WHATWG algorithm defines four "percent-encode sets" that describe ranges
17401740
of characters that must be percent-encoded:
17411741
17421742
* The _C0 control percent-encode set_ includes code points in range U+0000 to
1743-
U+001F (inclusive) and all code points greater than U+007E.
1743+
U+001F (inclusive) and all code points greater than U+007E (\~).
17441744
17451745
* The _fragment percent-encode set_ includes the _C0 control percent-encode set_
1746-
and code points U+0020, U+0022, U+003C, U+003E, and U+0060.
1746+
and code points U+0020 SPACE, U+0022 ("), U+003C (<), U+003E (>),
1747+
and U+0060 (\`).
17471748
17481749
* The _path percent-encode set_ includes the _C0 control percent-encode set_
1749-
and code points U+0020, U+0022, U+0023, U+003C, U+003E, U+003F, U+0060,
1750-
U+007B, and U+007D.
1750+
and code points U+0020 SPACE, U+0022 ("), U+0023 (#), U+003C (<), U+003E (>),
1751+
U+003F (?), U+0060 (\`), U+007B ({), and U+007D (}).
17511752
17521753
* The _userinfo encode set_ includes the _path percent-encode set_ and code
1753-
points U+002F, U+003A, U+003B, U+003D, U+0040, U+005B, U+005C, U+005D,
1754-
U+005E, and U+007C.
1754+
points U+002F (/), U+003A (:), U+003B (;), U+003D (=), U+0040 (@),
1755+
U+005B (\[) to U+005E(^), and U+007C (|).
17551756
17561757
The _userinfo percent-encode set_ is used exclusively for username and
17571758
passwords encoded within the URL. The _path percent-encode set_ is used for the

0 commit comments

Comments
 (0)