1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
6 * The origin of this IDL file is
7 * http://www.whatwg.org/specs/web-apps/current-work/#htmlformelement
9 * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
10 * Opera Software ASA. You are granted a license to use, reproduce
11 * and create derivative works of this document.
14 [LegacyOverrideBuiltIns, LegacyUnenumerableNamedProperties,
16 interface HTMLFormElement : HTMLElement {
17 [HTMLConstructor] constructor();
19 [CEReactions, Pure, SetterThrows]
20 attribute DOMString acceptCharset;
21 [CEReactions, Pure, SetterThrows]
22 attribute DOMString action;
23 [CEReactions, Pure, SetterThrows]
24 attribute DOMString autocomplete;
25 [CEReactions, Pure, SetterThrows]
26 attribute DOMString enctype;
27 [CEReactions, Pure, SetterThrows]
28 attribute DOMString encoding;
29 [CEReactions, Pure, SetterThrows]
30 attribute DOMString method;
31 [CEReactions, Pure, SetterThrows]
32 attribute DOMString name;
33 [CEReactions, Pure, SetterThrows]
34 attribute boolean noValidate;
35 [CEReactions, Pure, SetterThrows]
36 attribute DOMString target;
37 [CEReactions, Pure, SetterThrows]
38 attribute DOMString rel;
40 readonly attribute DOMTokenList relList;
43 readonly attribute HTMLFormControlsCollection elements;
45 readonly attribute long length;
47 getter Element (unsigned long index);
48 // TODO this should be: getter (RadioNodeList or HTMLInputElement or HTMLImageElement) (DOMString name);
49 getter nsISupports (DOMString name);
54 undefined requestSubmit(optional HTMLElement? submitter = null);
57 boolean checkValidity();
58 boolean reportValidity();