Use macro getters for input elements

This commit is contained in:
Manish Goregaokar 2014-08-28 14:06:56 +05:30
parent 2ce5b46bba
commit 8f47259d6e
7 changed files with 7 additions and 28 deletions

View file

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