diff options
author | Bhavya Bansal <bbansal@ncsu.edu> | 2016-10-28 18:12:20 -0700 |
---|---|---|
committer | Bhavya Bansal <bbansal@ncsu.edu> | 2016-11-23 22:46:57 -0800 |
commit | 2a408778518050d3632ad5c2694a96ae0b219cd9 (patch) | |
tree | d7c0c75d34f70c9454312b9df82fe3b46a78891f /components/script/dom/validation.rs | |
parent | e4fcc066d1248dc072026ba1dd887ffca5049c53 (diff) | |
download | servo-2a408778518050d3632ad5c2694a96ae0b219cd9.tar.gz servo-2a408778518050d3632ad5c2694a96ae0b219cd9.zip |
html form validation initial steps with test html file, added stub methods, added code to handle validations
Diffstat (limited to 'components/script/dom/validation.rs')
-rwxr-xr-x[-rw-r--r--] | components/script/dom/validation.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/components/script/dom/validation.rs b/components/script/dom/validation.rs index e9a6a156848..7ba915092a2 100644..100755 --- a/components/script/dom/validation.rs +++ b/components/script/dom/validation.rs @@ -1,5 +1,9 @@ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +use dom::validitystate::ValidationFlags; -pub trait Validatable {} +pub trait Validatable { + fn is_instance_validatable(&self) -> bool { true } + fn validate(&self, _validate_flags: ValidationFlags) -> bool { true } +} |