Skip to content

Commit

Permalink
URLSearchParams does not support nesting (#14759)
Browse files Browse the repository at this point in the history
  • Loading branch information
tredondo authored Jun 22, 2022
1 parent cf2f4fb commit c7d7809
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 @@ -30,7 +30,7 @@ new URLSearchParams(init)
- : One of:
- A string, which will be parsed from `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 string keys and string values.
- A record of string keys and string values. Note that nesting is not supported.

### Return value

Expand All @@ -39,7 +39,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 c7d7809

Please sign in to comment.