| Index: Source/core/html/FormData.idl
|
| diff --git a/Source/core/html/FormData.idl b/Source/core/html/FormData.idl
|
| index c4b1c21a830fc9368675191e9ff4a9584887b4eb..5bff8e605c51b20285b236ffb56fc23804a41773 100644
|
| --- a/Source/core/html/FormData.idl
|
| +++ b/Source/core/html/FormData.idl
|
| @@ -28,14 +28,33 @@
|
| * 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 ScalarValueString) FormDataEntryValue;
|
|
|
| [
|
| Constructor(optional HTMLFormElement form),
|
| Exposed=(Window,Worker),
|
| ImplementedAs=DOMFormData,
|
| + // FIXME: Expose Iterable only if RuntimeEnabled=FormDataNewMethods ?
|
| + Iterable,
|
| WillBeGarbageCollected,
|
| ] interface FormData {
|
| - void append(DOMString name, Blob value, optional DOMString filename);
|
| - void append(DOMString name, DOMString value);
|
| + void append(ScalarValueString name, Blob value, optional ScalarValueString filename);
|
| + void append(ScalarValueString name, ScalarValueString value);
|
| + [ImplementedAs=remove, RuntimeEnabled=FormDataNewMethods] void delete(ScalarValueString name);
|
| +
|
| + // FIXME: replace 'any' with nullable union type, per spec.
|
| + // FormDataEntryValue? get(ScalarValueString name);
|
| + [CallWith=ScriptState, RuntimeEnabled=FormDataNewMethods] any get(ScalarValueString name);
|
| + // sequence<FormDataEntryValue> getAll(ScalarValueString name);
|
| + [CallWith=ScriptState, RuntimeEnabled=FormDataNewMethods] any[] getAll(ScalarValueString name);
|
| +
|
| + [RuntimeEnabled=FormDataNewMethods] boolean has(ScalarValueString name);
|
| + [RuntimeEnabled=FormDataNewMethods] void set(ScalarValueString name, Blob value, optional ScalarValueString filename);
|
| + [RuntimeEnabled=FormDataNewMethods] void set(ScalarValueString name, ScalarValueString value);
|
| +
|
| + [RuntimeEnabled=FormDataNewMethods] Iterator entries();
|
| + [RuntimeEnabled=FormDataNewMethods] Iterator keys();
|
| + [RuntimeEnabled=FormDataNewMethods] Iterator values();
|
| };
|
|
|