Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: remove port from example in url.hostname
If port is used for `url.hostname`, `url.hostname`
is not working. So remove port from example in
`url.hostname`.
  • Loading branch information
deokjinkim committed Dec 24, 2022
commit 6ece8fd5790831880cfd290dfc6b0f93fc27c723
2 changes: 1 addition & 1 deletion doc/api/url.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ console.log(myURL.hostname);
// Prints example.org

// Setting the hostname does not change the port
Comment thread
deokjinkim marked this conversation as resolved.
myURL.hostname = 'example.com:82';
myURL.hostname = 'example.com';
console.log(myURL.href);
// Prints https://example.com:81/foo

Expand Down