mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
implement formcontrol for htmlbuttonelement
This commit is contained in:
parent
c0867ec90a
commit
6d0e9a6c9d
1 changed files with 7 additions and 0 deletions
|
@ -14,6 +14,7 @@ use dom::element::{AttributeHandlers, Element};
|
|||
use dom::eventtarget::{EventTarget, EventTargetTypeId};
|
||||
use dom::element::ElementTypeId;
|
||||
use dom::htmlelement::{HTMLElement, HTMLElementTypeId};
|
||||
use dom::htmlformelement::{FormControl};
|
||||
use dom::node::{DisabledStateHelpers, Node, NodeHelpers, NodeTypeId, window_from_node};
|
||||
use dom::validitystate::ValidityState;
|
||||
use dom::virtualmethods::VirtualMethods;
|
||||
|
@ -152,3 +153,9 @@ impl<'a> VirtualMethods for JSRef<'a, HTMLButtonElement> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> FormControl<'a> for JSRef<'a, HTMLButtonElement> {
|
||||
fn to_element(self) -> JSRef<'a, Element> {
|
||||
ElementCast::from_ref(self)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue