diff options
Diffstat (limited to 'src/components/script/dom/htmloptgroupelement.rs')
-rw-r--r-- | src/components/script/dom/htmloptgroupelement.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/components/script/dom/htmloptgroupelement.rs b/src/components/script/dom/htmloptgroupelement.rs index eee7c80f27b..6e90cb45fe5 100644 --- a/src/components/script/dom/htmloptgroupelement.rs +++ b/src/components/script/dom/htmloptgroupelement.rs @@ -44,10 +44,7 @@ impl HTMLOptGroupElement { impl<'a> HTMLOptGroupElementMethods for JSRef<'a, HTMLOptGroupElement> { // http://www.whatwg.org/html#dom-optgroup-disabled - fn Disabled(&self) -> bool { - let elem: &JSRef<Element> = ElementCast::from_ref(self); - elem.has_attribute("disabled") - } + make_bool_getter!(Disabled) // http://www.whatwg.org/html#dom-optgroup-disabled fn SetDisabled(&self, disabled: bool) { |