Chromium Code Reviews| Index: Source/core/html/FormData.idl |
| diff --git a/Source/core/html/FormData.idl b/Source/core/html/FormData.idl |
| index c4b1c21a830fc9368675191e9ff4a9584887b4eb..9de9cf64e05ecf4389dad6dd8e20b3338f9b8d42 100644 |
| --- a/Source/core/html/FormData.idl |
| +++ b/Source/core/html/FormData.idl |
| @@ -28,7 +28,9 @@ |
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| -// https://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#formdata |
| +// http://xhr.spec.whatwg.org/#interface-formdata |
| + |
| +typedef (File or USVString) FormDataEntryValue; |
| [ |
| Constructor(optional HTMLFormElement form), |
| @@ -36,6 +38,14 @@ |
| ImplementedAs=DOMFormData, |
| WillBeGarbageCollected, |
| ] interface FormData { |
| - void append(DOMString name, Blob value, optional DOMString filename); |
| - void append(DOMString name, DOMString value); |
| + void append(USVString name, Blob value, optional USVString filename); |
| + void append(USVString name, USVString value); |
| + |
| + [RuntimeEnabled=FormDataNewMethods, ImplementedAs=deleteEntry] void delete(USVString name); |
| + [RuntimeEnabled=FormDataNewMethods] FormDataEntryValue? get(USVString name); |
| + [RuntimeEnabled=FormDataNewMethods] sequence<FormDataEntryValue> getAll(USVString name); |
| + [RuntimeEnabled=FormDataNewMethods, ImplementedAs=hasEntry, ] boolean has(USVString name); |
|
Jens Widell
2015/01/15 19:20:25
The trailing ", " in the extended attributes list
jsbell
2015/01/15 19:29:47
Done.
|
| + [RuntimeEnabled=FormDataNewMethods] void set(USVString name, Blob value, optional USVString filename); |
| + [RuntimeEnabled=FormDataNewMethods] void set(USVString name, USVString value); |
| + [RuntimeEnabled=FormDataNewMethods] iterable<USVString, FormDataEntryValue>; |
| }; |