OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 // https://url.spec.whatwg.org/#interface-urlsearchparams | |
6 | |
7 [ | |
8 Constructor(), | |
philipj_slow
2015/11/16 12:15:46
Does the IDL compiler not support the [Constructor
Mike West
2015/11/16 14:12:10
I didn't think it would work, but it looks like it
| |
9 Constructor(URLSearchParams initial), | |
10 Constructor(USVString queryString), | |
11 GarbageCollected, | |
12 Exposed=(Window,Worker) | |
13 ] interface URLSearchParams { | |
14 void append(USVString name, USVString value); | |
15 [ImplementedAs=deleteAllWithName] void delete(USVString name); | |
16 [TreatReturnedNullStringAs=Null] USVString get(USVString name); | |
philipj_slow
2015/11/16 12:15:46
Can you use `USVString?` instead of `[TreatReturne
Mike West
2015/11/16 14:12:10
Sure.
| |
17 sequence<USVString> getAll(USVString name); | |
18 boolean has(USVString name); | |
19 void set(USVString name, USVString value); | |
20 | |
philipj_slow
2015/11/16 12:15:46
Can you add a TODO for `iterable<USVString, USVStr
Mike West
2015/11/16 14:12:10
Sure. I even added a test!
| |
21 stringifier; | |
22 }; | |
OLD | NEW |