We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db261a9 commit e3553ebCopy full SHA for e3553eb
doc/api/url.md
@@ -257,9 +257,9 @@ console.log(myURL.href);
257
// Prints https://example.org:81/foo
258
259
// Use myURL.host to change the hostname and port
260
-myURL.host = 'example.org:82';
+myURL.host = 'example.com:82';
261
console.log(myURL.href);
262
-// Prints https://example.org:82/foo
+// Prints https://example.com:82/foo
263
```
264
265
Invalid host name values assigned to the `hostname` property are ignored.
0 commit comments