mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Implement initial pieces of form validation.
This commit is contained in:
parent
7a9dc57761
commit
051ffba0e5
14 changed files with 185 additions and 55 deletions
|
@ -28,6 +28,7 @@ use dom::keyboardevent::KeyboardEvent;
|
|||
use dom::node::{Node, NodeDamage, UnbindContext};
|
||||
use dom::node::{document_from_node, window_from_node};
|
||||
use dom::nodelist::NodeList;
|
||||
use dom::validation::Validatable;
|
||||
use dom::virtualmethods::VirtualMethods;
|
||||
use msg::constellation_msg::ConstellationChan;
|
||||
use script_thread::ScriptThreadEventCategory::InputEvent;
|
||||
|
@ -908,6 +909,8 @@ impl VirtualMethods for HTMLInputElement {
|
|||
|
||||
impl FormControl for HTMLInputElement {}
|
||||
|
||||
impl Validatable for HTMLInputElement {}
|
||||
|
||||
impl Activatable for HTMLInputElement {
|
||||
fn as_element(&self) -> &Element {
|
||||
self.upcast()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue