Add type IDL attr for submittable elements

This commit is contained in:
Manish Goregaokar 2014-10-10 15:46:45 +05:30
parent e048f3f940
commit 8a2c746e61
10 changed files with 66 additions and 9 deletions

View file

@ -86,6 +86,12 @@ impl<'a> HTMLObjectElementMethods for JSRef<'a, HTMLObjectElement> {
let window = window_from_node(self).root();
ValidityState::new(*window)
}
// https://html.spec.whatwg.org/multipage/embedded-content.html#dom-object-type
make_getter!(Type)
// https://html.spec.whatwg.org/multipage/embedded-content.html#dom-object-type
make_setter!(SetType, "type")
}
impl<'a> VirtualMethods for JSRef<'a, HTMLObjectElement> {