Skip to content

Commit 374412c

Browse files
committed
Fix param descriptions on the URL query example
1 parent af5a043 commit 374412c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/data/markdown/docs/05 Examples/01 Examples/21 URL query parameters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ export default function () {
3434
| URLSearchParams(init) | Constructor | `init` Optional: One of [USVString, sequence of pairs or record ] |
3535
| toString() | Method | Returns a USVString containing the whole URL |
3636
| hash | Property | A USVString containing a '#' followed by the fragment identifier of the URL. |
37-
| host | Property | A USVString containing the domain (that is the hostname) followed by (if a port was specified) a ':' and the port of the URL. |
38-
| hostname | Property | A USVString containing the domain (that is the hostname) followed by (if a port was specified) a ':' and the port of the URL. |
37+
| host | Property | A USVString containing the host, that is the `hostname`, and then, if the port of the URL is nonempty, a ':', followed by the `port` of the URL. |
38+
| hostname | Property | A USVString containing the [domain name](https://developer.mozilla.org/en-US/docs/Glossary/Domain_name) of the URL. |
3939
| href | Property | Returns a USVString containing the whole URL. |
4040
| origin | Property | Returns a USVString containing the origin of the URL, that is its scheme, its domain and its port. |
4141
| password | Property | A USVString containing the password specified before the domain name. |

0 commit comments

Comments
 (0)