Skip to content

Commit

Permalink
doc: add Added-in metadata for WHATWG URL
Browse files Browse the repository at this point in the history
PR-URL: #12683
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Daijiro Wachi <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
  • Loading branch information
TimothyGu authored and jasnell committed Apr 28, 2017
1 parent 3a0058c commit 9d4bb55
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion doc/api/url.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ forward-slash characters (`/`) are required following the colon in the
`protocol`.

## url.domainToASCII(domain)
<!-- YAML
added: v7.4.0
-->

> Stability: 1 - Experimental
Expand All @@ -154,6 +157,9 @@ console.log(url.domainToASCII('xn--iñvalid.com'));
```

## url.domainToUnicode(domain)
<!-- YAML
added: v7.4.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -243,6 +249,9 @@ The formatting process operates as follows:
* `result` is returned.

## url.format(URL[, options])
<!-- YAML
added: v7.6.0
-->

> Stability: 1 - Experimental
Expand All @@ -254,7 +263,7 @@ The formatting process operates as follows:
fragment, `false` otherwise. Defaults to `true`.
* `search` {boolean} `true` if the serialized URL string should include the
search query, `false` otherwise. Defaults to `true`.
* `unicode` (Boolean) `true` if Unicode characters appearing in the host
* `unicode` {boolean} `true` if Unicode characters appearing in the host
component of the URL string should be encoded directly as opposed to being
Punycode encoded. Defaults to `false`.

Expand Down Expand Up @@ -352,6 +361,9 @@ For example, the ASCII space character (`' '`) is encoded as `%20`. The ASCII
forward slash (`/`) character is encoded as `%3C`.

## The WHATWG URL API
<!-- YAML
added: v7.0.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -739,6 +751,9 @@ console.log(JSON.stringify(myURLs));
```

### Class: URLSearchParams
<!-- YAML
added: v7.5.0
-->

The `URLSearchParams` API provides read and write access to the query of a
`URL`. The `URLSearchParams` class can also be used standalone with one of the
Expand Down Expand Up @@ -811,6 +826,9 @@ console.log(params.toString());
```

#### Constructor: new URLSearchParams(obj)
<!-- YAML
added: v7.10.0
-->

* `obj` {Object} An object representing a collection of key-value pairs

Expand All @@ -834,6 +852,9 @@ console.log(params.toString());
```

#### Constructor: new URLSearchParams(iterable)
<!-- YAML
added: v7.10.0
-->

* `iterable` {Iterable} An iterable object whose elements are key-value pairs

Expand Down Expand Up @@ -993,6 +1014,9 @@ console.log(params.toString());
```

#### urlSearchParams.sort()
<!-- YAML
added: v7.7.0
-->

Sort all existing name-value pairs in-place by their names. Sorting is done
with a [stable sorting algorithm][], so relative order between name-value pairs
Expand Down

0 comments on commit 9d4bb55

Please sign in to comment.