mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
html form validation initial steps with test html file, added stub methods, added code to handle validations
This commit is contained in:
parent
e4fcc066d1
commit
2a40877851
9 changed files with 124 additions and 15 deletions
6
components/script/dom/validation.rs
Normal file → Executable file
6
components/script/dom/validation.rs
Normal file → Executable file
|
@ -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 }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue