Skip to content

Commit

Permalink
URLSearchParams does not support nesting
Browse files Browse the repository at this point in the history
  • Loading branch information
tredondo authored Apr 6, 2022
1 parent 37cac3a commit 245b567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/en-us/web/api/urlsearchparams/urlsearchparams/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ One of:
`application/x-www-form-urlencoded` format. A leading `'?'`
character is ignored.
- A literal sequence of name-value string pairs, or any object — such as a {{domxref("FormData")}} object — with an [iterator](/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators#iterators) that produces a sequence of string pairs. Note that {{domxref("File")}} entries will be serialized as `[object File]` rather than as their filename (as they would in an `application/x-www-form`-urlencoded form).
- A record of {{domxref("USVString")}} keys and {{domxref("USVString")}} values.
- A record of {{domxref("USVString")}} keys and {{domxref("USVString")}} values. Note that nesting is not supported.

### Return value

Expand All @@ -41,7 +41,7 @@ A {{domxref("URLSearchParams")}} object instance.
## Examples

The following example shows how to create a {{domxref("URLSearchParams")}} object from
a URL string.
various inputs.

```js
// Retrieve params via url.search, passed into ctor
Expand Down

0 comments on commit 245b567

Please sign in to comment.