mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Implement initial pieces of form validation.
This commit is contained in:
parent
7a9dc57761
commit
051ffba0e5
14 changed files with 185 additions and 55 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue