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/#the-button-element
8 * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
9 * Opera Software ASA. You are granted a license to use, reproduce
10 * and create derivative works of this document.
13 // http://www.whatwg.org/specs/web-apps/current-work/#the-button-element
15 InstrumentedProps=(popoverTargetAction,popoverTargetElement)]
16 interface HTMLButtonElement : HTMLElement {
17 [HTMLConstructor] constructor();
19 [CEReactions, SetterThrows, Pure]
20 attribute boolean disabled;
22 readonly attribute HTMLFormElement? form;
23 [CEReactions, SetterThrows, Pure]
24 attribute DOMString formAction;
25 [CEReactions, SetterThrows, Pure]
26 attribute DOMString formEnctype;
27 [CEReactions, SetterThrows, Pure]
28 attribute DOMString formMethod;
29 [CEReactions, SetterThrows, Pure]
30 attribute boolean formNoValidate;
31 [CEReactions, SetterThrows, Pure]
32 attribute DOMString formTarget;
33 [CEReactions, SetterThrows, Pure]
34 attribute DOMString name;
35 [CEReactions, SetterThrows, Pure]
36 attribute DOMString type;
37 [CEReactions, SetterThrows, Pure]
38 attribute DOMString value;
40 readonly attribute boolean willValidate;
41 readonly attribute ValidityState validity;
43 readonly attribute DOMString validationMessage;
44 boolean checkValidity();
45 boolean reportValidity();
46 undefined setCustomValidity(DOMString error);
48 readonly attribute NodeList labels;
51 HTMLButtonElement includes PopoverInvokerElement;
53 HTMLButtonElement includes InvokerElement;