diff options
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 } +} |