Auto merge of #10169 - jdm:formvalidation, r=jdm

Implement initial pieces of form validation.

Rebase of #10108.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10169)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-03-24 19:13:02 +05:30
commit f56062b069
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;
};