OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // https://url.spec.whatwg.org/#interface-urlsearchparams | 5 // https://url.spec.whatwg.org/#interface-urlsearchparams |
6 | 6 |
7 [ | 7 [ |
8 Constructor(optional (USVString or URLSearchParams) init = ""), | 8 Constructor(optional (sequence<sequence<USVString>> or USVString or URLSearc
hParams) init = ""), |
9 Exposed=(Window,Worker) | 9 Exposed=(Window,Worker), |
| 10 RaisesException=Constructor, |
10 ] interface URLSearchParams { | 11 ] interface URLSearchParams { |
11 void append(USVString name, USVString value); | 12 void append(USVString name, USVString value); |
12 [ImplementedAs=deleteAllWithName] void delete(USVString name); | 13 [ImplementedAs=deleteAllWithName] void delete(USVString name); |
13 USVString? get(USVString name); | 14 USVString? get(USVString name); |
14 sequence<USVString> getAll(USVString name); | 15 sequence<USVString> getAll(USVString name); |
15 boolean has(USVString name); | 16 boolean has(USVString name); |
16 void set(USVString name, USVString value); | 17 void set(USVString name, USVString value); |
17 | 18 |
18 iterable<USVString, USVString>; | 19 iterable<USVString, USVString>; |
19 stringifier; | 20 stringifier; |
20 }; | 21 }; |
OLD | NEW |