nsIDOMValidityState.idl 1.1 KB

12345678910111213141516171819202122232425262728293031
  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 "domstubs.idl"
  6. /**
  7. * The nsIDOMValidityState interface is the interface to a ValidityState
  8. * object which represents the validity states of an element.
  9. *
  10. * For more information on this interface please see
  11. * http://www.whatwg.org/specs/web-apps/current-work/#validitystate
  12. */
  13. [uuid(00bed276-f1f7-492f-a039-dbd9b9efc10b)]
  14. interface nsIDOMValidityState : nsISupports
  15. {
  16. readonly attribute boolean valueMissing;
  17. readonly attribute boolean typeMismatch;
  18. readonly attribute boolean patternMismatch;
  19. readonly attribute boolean tooLong;
  20. readonly attribute boolean tooShort;
  21. readonly attribute boolean rangeUnderflow;
  22. readonly attribute boolean rangeOverflow;
  23. readonly attribute boolean stepMismatch;
  24. readonly attribute boolean badInput;
  25. readonly attribute boolean customError;
  26. readonly attribute boolean valid;
  27. };