1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/interfaces/html/nsIDOMValidityState.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "domstubs.idl" 1.10 + 1.11 +/** 1.12 + * The nsIDOMValidityState interface is the interface to a ValidityState 1.13 + * object which represents the validity states of an element. 1.14 + * 1.15 + * For more information on this interface please see 1.16 + * http://www.whatwg.org/specs/web-apps/current-work/#validitystate 1.17 + */ 1.18 + 1.19 +[scriptable, uuid(00bed276-f1f7-492f-a039-dbd9b9efc10b)] 1.20 +interface nsIDOMValidityState : nsISupports 1.21 +{ 1.22 + readonly attribute boolean valueMissing; 1.23 + readonly attribute boolean typeMismatch; 1.24 + readonly attribute boolean patternMismatch; 1.25 + readonly attribute boolean tooLong; 1.26 + readonly attribute boolean rangeUnderflow; 1.27 + readonly attribute boolean rangeOverflow; 1.28 + readonly attribute boolean stepMismatch; 1.29 + readonly attribute boolean badInput; 1.30 + readonly attribute boolean customError; 1.31 + readonly attribute boolean valid; 1.32 +};