Implement initial pieces of form validation.

This commit is contained in:
Sagar Muchhal 2016-03-18 19:53:34 -04:00 committed by Josh Matthews
parent 7a9dc57761
commit 051ffba0e5
14 changed files with 185 additions and 55 deletions

View file

@ -5,15 +5,15 @@
// https://html.spec.whatwg.org/multipage/#validitystate
interface ValidityState {
//readonly attribute boolean valueMissing;
//readonly attribute boolean typeMismatch;
//readonly attribute boolean patternMismatch;
//readonly attribute boolean tooLong;
//readonly attribute boolean tooShort;
//readonly attribute boolean rangeUnderflow;
//readonly attribute boolean rangeOverflow;
//readonly attribute boolean stepMismatch;
//readonly attribute boolean badInput;
//readonly attribute boolean customError;
//readonly attribute boolean valid;
readonly attribute boolean valueMissing;
readonly attribute boolean typeMismatch;
readonly attribute boolean patternMismatch;
readonly attribute boolean tooLong;
readonly attribute boolean tooShort;
readonly attribute boolean rangeUnderflow;
readonly attribute boolean rangeOverflow;
readonly attribute boolean stepMismatch;
readonly attribute boolean badInput;
readonly attribute boolean customError;
readonly attribute boolean valid;
};