nsIDOMHTMLButtonElement.idl 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "nsIDOMHTMLElement.idl"
  6. /**
  7. * The nsIDOMHTMLButtonElement interface is the interface to a [X]HTML
  8. * button element.
  9. *
  10. * This interface is trying to follow the DOM Level 2 HTML specification:
  11. * http://www.w3.org/TR/DOM-Level-2-HTML/
  12. *
  13. * with changes from the work-in-progress WHATWG HTML specification:
  14. * http://www.whatwg.org/specs/web-apps/current-work/
  15. */
  16. interface nsIDOMValidityState;
  17. [uuid(44b7a468-7dba-4f0c-9b4e-ee46dc0f26c7)]
  18. interface nsIDOMHTMLButtonElement : nsISupports
  19. {
  20. attribute boolean autofocus;
  21. attribute boolean disabled;
  22. readonly attribute nsIDOMHTMLFormElement form;
  23. attribute DOMString formAction;
  24. attribute DOMString formEnctype;
  25. attribute DOMString formMethod;
  26. attribute boolean formNoValidate;
  27. attribute DOMString formTarget;
  28. attribute DOMString name;
  29. attribute DOMString type;
  30. attribute DOMString value;
  31. // The following lines are part of the constraint validation API, see:
  32. // http://www.whatwg.org/specs/web-apps/current-work/#the-constraint-validation-api
  33. readonly attribute boolean willValidate;
  34. readonly attribute nsIDOMValidityState validity;
  35. readonly attribute DOMString validationMessage;
  36. boolean checkValidity();
  37. void setCustomValidity(in DOMString error);
  38. };