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 [OverrideBuiltins, LegacyUnenumerableNamedProperties, HTMLConstructor]
15 interface HTMLFormElement : HTMLElement {
16 [CEReactions, Pure, SetterThrows]
17 attribute DOMString acceptCharset;
18 [CEReactions, Pure, SetterThrows]
19 attribute DOMString action;
20 [CEReactions, Pure, SetterThrows]
21 attribute DOMString autocomplete;
22 [CEReactions, Pure, SetterThrows]
23 attribute DOMString enctype;
24 [CEReactions, Pure, SetterThrows]
25 attribute DOMString encoding;
26 [CEReactions, Pure, SetterThrows]
27 attribute DOMString method;
28 [CEReactions, Pure, SetterThrows]
29 attribute DOMString name;
30 [CEReactions, Pure, SetterThrows]
31 attribute boolean noValidate;
32 [CEReactions, Pure, SetterThrows]
33 attribute DOMString target;
36 readonly attribute HTMLCollection elements;
38 readonly attribute long length;
40 getter Element (unsigned long index);
41 // TODO this should be: getter (RadioNodeList or HTMLInputElement or HTMLImageElement) (DOMString name);
42 getter nsISupports (DOMString name);
48 boolean checkValidity();
49 boolean reportValidity();