diff --git a/url.bs b/url.bs index 3442b610..3fb2a1f0 100644 --- a/url.bs +++ b/url.bs @@ -3700,10 +3700,10 @@ interface URLSearchParams { readonly attribute unsigned long size; undefined append(USVString name, USVString value); - undefined delete(USVString name); + undefined delete(USVString name, optional USVString value); USVString? get(USVString name); sequence<USVString> getAll(USVString name); - boolean has(USVString name); + boolean has(USVString name, optional USVString value); undefined set(USVString name, USVString value); undefined sort(); @@ -3761,8 +3761,9 @@ console.log(url.searchParams.get('b')); // "~" the potential to change that object's path in a manner equivalent to the {{URL}} object's {{URL/search}} and {{URL/hash}} setters. +
To initialize a -{{URLSearchParams}} object query with init, run these steps: +{{URLSearchParams}} object query with init:
To update a {{URLSearchParams}} -object query, run these steps: +object query:
If query's URL object is null, then return. @@ -3811,7 +3814,9 @@ object query, run these steps: potentially strip trailing spaces from an opaque path with query's URL object.
The
new URLSearchParams(init)
constructor steps are:
Initialize this with init. +
The delete(name)
method steps are:
+
The delete(name, value)
+method steps are:
The get(name)
method steps are to
return the value of the first tuple whose name is name in this's
list, if there is such a tuple; otherwise null.
+
The getAll(name)
method steps are
to return the values of all tuples whose name is name in this's
list, in list order; otherwise the empty sequence.
+
The has(name, value)
+method steps are:
+
+
If value is given and there is a tuple whose name is name + and value is value in this's list, then return true. -
The has(name)
method steps are to
-return true if there is a tuple whose name is name in this's
-list; otherwise false.
+
If value is not given and there is a tuple whose name is + name in this's list, then return true. +
Return false. +