aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlbuttonelement.rs
diff options
context:
space:
mode:
authorKeith Yeung <kungfukeith11@gmail.com>2015-11-29 17:32:09 -0800
committerKeith Yeung <kungfukeith11@gmail.com>2015-12-15 16:34:42 -0800
commit3395e5458586173fbd07cc65131ad8fd990fcccb (patch)
tree7d08c8977155e0add1a147a74f0d13f058d86111 /components/script/dom/htmlbuttonelement.rs
parent85b43ea31726776b5d9aafa58786850c12e2c852 (diff)
downloadservo-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.rs6
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");