Trait script::dom::validation::Validatable
source · pub trait Validatable {
// Required methods
fn as_element(&self) -> ∈
fn validity_state(&self) -> Root<Dom<ValidityState>>;
fn is_instance_validatable(&self) -> bool;
// Provided methods
fn perform_validation(
&self,
_validate_flags: ValidationFlags,
) -> ValidationFlags { ... }
fn satisfies_constraints(&self) -> bool { ... }
fn check_validity(&self) -> bool { ... }
fn report_validity(&self) -> bool { ... }
fn validation_message(&self) -> DOMString { ... }
}
Expand description
Trait for elements with constraint validation support