GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: standardize on "host name" in url.md · nodejs/node@aedbfdb

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • url.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/url.md‎

Copy file name to clipboardExpand all lines: doc/api/url.md
+5-5Lines changed: 5 additions & 5 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ const myURL = new URL({ toString: () => 'https://example.org/' });
114114
// https://example.org/
115115
```
116116

117-
Unicode characters appearing within the hostname of `input` will be
117+
Unicode characters appearing within the host name of `input` will be
118118
automatically converted to ASCII using the [Punycode][] algorithm.
119119

120120
```js
@@ -192,7 +192,7 @@ Invalid host values assigned to the `host` property are ignored.
192192

193193
* {string}
194194

195-
Gets and sets the hostname portion of the URL. The key difference between
195+
Gets and sets the host name portion of the URL. The key difference between
196196
`url.host` and `url.hostname` is that `url.hostname` does *not* include the
197197
port.
198198

@@ -206,7 +206,7 @@ console.log(myURL.href);
206206
// Prints https://example.com:81/foo
207207
```
208208

209-
Invalid hostname values assigned to the `hostname` property are ignored.
209+
Invalid host name values assigned to the `hostname` property are ignored.
210210

211211
#### `url.href`
212212

@@ -1298,8 +1298,8 @@ path of most URLs. The *fragment percent-encode set* is used for URL fragments.
12981298
The *C0 control percent-encode set* is used for host and path under certain
12991299
specific conditions, in addition to all other cases.
13001300

1301-
When non-ASCII characters appear within a hostname, the hostname is encoded
1302-
using the [Punycode][] algorithm. Note, however, that a hostname *may* contain
1301+
When non-ASCII characters appear within a host name, the host name is encoded
1302+
using the [Punycode][] algorithm. Note, however, that a host name *may* contain
13031303
*both* Punycode encoded and percent-encoded characters:
13041304

13051305
```js

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.