aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlobjectelement.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2014-10-10 15:46:45 +0530
committerManish Goregaokar <manishsmail@gmail.com>2014-10-11 09:48:15 +0530
commit8a2c746e6162e1301f38419130dbc9c1ff83a03a (patch)
tree4072a08c2cfff50580d532f2cd6ce614df159df8 /components/script/dom/htmlobjectelement.rs
parente048f3f940e124d45b43a53a850177c45907822d (diff)
downloadservo-8a2c746e6162e1301f38419130dbc9c1ff83a03a.tar.gz
servo-8a2c746e6162e1301f38419130dbc9c1ff83a03a.zip
Add type IDL attr for submittable elements
Diffstat (limited to 'components/script/dom/htmlobjectelement.rs')
-rw-r--r--components/script/dom/htmlobjectelement.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/script/dom/htmlobjectelement.rs b/components/script/dom/htmlobjectelement.rs
index f5aadd3c956..1d39c3a07f5 100644
--- a/components/script/dom/htmlobjectelement.rs
+++ b/components/script/dom/htmlobjectelement.rs
@@ -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> {