Implement initial pieces of form validation.

This commit is contained in:
Sagar Muchhal 2016-03-18 19:53:34 -04:00 committed by Josh Matthews
parent 7a9dc57761
commit 051ffba0e5
14 changed files with 185 additions and 55 deletions

View file

@ -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()