diff options
author | Keith Yeung <kungfukeith11@gmail.com> | 2015-11-29 17:32:09 -0800 |
---|---|---|
committer | Keith Yeung <kungfukeith11@gmail.com> | 2015-12-15 16:34:42 -0800 |
commit | 3395e5458586173fbd07cc65131ad8fd990fcccb (patch) | |
tree | 7d08c8977155e0add1a147a74f0d13f058d86111 /components/script/dom/htmlinputelement.rs | |
parent | 85b43ea31726776b5d9aafa58786850c12e2c852 (diff) | |
download | servo-3395e5458586173fbd07cc65131ad8fd990fcccb.tar.gz servo-3395e5458586173fbd07cc65131ad8fd990fcccb.zip |
Implement basic framework for static and interactive validation on forms
Diffstat (limited to 'components/script/dom/htmlinputelement.rs')
-rw-r--r-- | components/script/dom/htmlinputelement.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/script/dom/htmlinputelement.rs b/components/script/dom/htmlinputelement.rs index 092e963840b..35d04fed47e 100644 --- a/components/script/dom/htmlinputelement.rs +++ b/components/script/dom/htmlinputelement.rs @@ -340,6 +340,12 @@ impl HTMLInputElementMethods for HTMLInputElement { // https://html.spec.whatwg.org/multipage/#dom-input-formtarget make_setter!(SetFormTarget, "formtarget"); + // https://html.spec.whatwg.org/multipage/#attr-fs-formnovalidate + make_bool_getter!(FormNoValidate, "formnovalidate"); + + // https://html.spec.whatwg.org/multipage/#attr-fs-formnovalidate + make_bool_setter!(SetFormNoValidate, "formnovalidate"); + // https://html.spec.whatwg.org/multipage/#dom-input-maxlength make_int_getter!(MaxLength, "maxlength", DEFAULT_MAX_LENGTH); |