// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // https://url.spec.whatwg.org/#interface-urlsearchparams [ Exposed=(Window,Worker,ShadowRealm) // TODO(crbug.com/41480387): This should be Exposed=* ] interface URLSearchParams { [RaisesException] constructor(optional (sequence> or record or USVString) init = ""); readonly attribute unsigned long size; void append(USVString name, USVString value); [ImplementedAs=deleteAllWithNameOrTuple, CallWith=ExecutionContext] void delete(USVString name, optional USVString value); USVString? get(USVString name); sequence getAll(USVString name); [CallWith=ExecutionContext] boolean has(USVString name, optional USVString value); void set(USVString name, USVString value); void sort(); iterable; stringifier; };