Skip to content

URLSearchParams

Generated from idl/url.webidl when the site was built at 7aa23e2.

URLSearchParams is an interface in idl/url.webidl, exposed in Window, Worker. What it does is on MDN; this page says what niso has of it.

The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).

Feature On the web In niso Members
URL Widely available Partial 85% 9429 of 10977 subtests pass 10
constructor
constructor(optional (sequence<sequence<USVString>> or record<USVString, USVString> or USVString) init = "");
int32_t niso_url_search_params_new(niso_dom* dom, bool init_is_pairs, const niso_str* init_pairs, size_t init_pairs_len, const char* init, size_t init_len, niso_handle* out);
attribute
readonly attribute unsigned long size;
int32_t niso_url_search_params_get_size(niso_dom* dom, niso_handle self, uint32_t* out);
operation
undefined append(USVString name, USVString value);
int32_t niso_url_search_params_append(niso_dom* dom, niso_handle self, const char* name, size_t name_len, const char* value, size_t value_len);
operation
undefined delete(USVString name, optional USVString value);
int32_t niso_url_search_params_delete(niso_dom* dom, niso_handle self, const char* name, size_t name_len, const char* value, size_t value_len);
operation
USVString? get(USVString name);
int32_t niso_url_search_params_get(niso_dom* dom, niso_handle self, const char* name, size_t name_len, niso_str* out);
operation
sequence<USVString> getAll(USVString name);
int32_t niso_url_search_params_get_all(niso_dom* dom, niso_handle self, const char* name, size_t name_len, niso_strs* out);
operation
boolean has(USVString name, optional USVString value);
int32_t niso_url_search_params_has(niso_dom* dom, niso_handle self, const char* name, size_t name_len, const char* value, size_t value_len, bool* out);
operation
undefined set(USVString name, USVString value);
int32_t niso_url_search_params_set(niso_dom* dom, niso_handle self, const char* name, size_t name_len, const char* value, size_t value_len);
operation
undefined sort();
int32_t niso_url_search_params_sort(niso_dom* dom, niso_handle self);
iterable
iterable<USVString, USVString>;
int32_t niso_url_search_params_iterate(niso_dom* dom, niso_handle self, niso_strs* out);
operation
stringifier undefined ();

Members the web has, by the BCD keys web-features 3.45.0 lists, that idl/ doesn’t declare. The list is partial: web-features lists only the keys it maps to a feature.

  • @@iterator (URL)
  • entries (URL)
  • forEach (URL)
  • keys (URL)
  • toString (URL)
  • values (URL)