GeezerVison is showing github.com — doc: update description for `percent_encode` sets in `WHATWG API` · nodejs/node@c70945d
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: doc/api/url.md +7-6Lines changed: 7 additions & 6 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1726,18 +1726,19 @@ The WHATWG algorithm defines four "percent-encode sets" that describe ranges | 1726 | 1726 | of characters that must be percent-encoded: | 1727 | 1727 |
| 1728 | 1728 | * 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 (\~). | 1730 | 1730 |
| 1731 | 1731 | * 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 (\`). | 1733 | 1734 |
| 1734 | 1735 | * 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 (}). | 1737 | 1738 |
| 1738 | 1739 | * 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 (|). | 1741 | 1742 |
| 1742 | 1743 | The _userinfo percent-encode set_ is used exclusively for username and | 1743 | 1744 | passwords encoded within the URL. The _path percent-encode set_ is used for the | |
|