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/htmlbuttonelement.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/htmlbuttonelement.rs')
-rw-r--r-- | components/script/dom/htmlbuttonelement.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/script/dom/htmlbuttonelement.rs b/components/script/dom/htmlbuttonelement.rs index 356f094f052..07c508bd03d 100644 --- a/components/script/dom/htmlbuttonelement.rs +++ b/components/script/dom/htmlbuttonelement.rs @@ -115,6 +115,12 @@ impl HTMLButtonElementMethods for HTMLButtonElement { // https://html.spec.whatwg.org/multipage/#dom-fs-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-fe-name make_getter!(Name, "name"); |