Skip to content

Constructor parameters for URLSearchParams are not quite right #834

Closed
@steinybot

Description

@steinybot

URLSearchParams has:

  def this(init: Sequence[String]) = this()

where Sequence[String] is an alias for js.Array[String].

However this should be a sequence of string pairs not just strings, i.e. Sequence[js.Tuple2[String, String]].

https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/URLSearchParams#options:

A literal sequence of name-value string pairs, or any object — such as a FormData object — with an iterator that produces a sequence of string pairs. Note that File entries will be serialized as [object File] rather than as their filename (as they would in an application/x-www-form-urlencoded form).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions