mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Use macro getters for input elements
This commit is contained in:
parent
2ce5b46bba
commit
8f47259d6e
7 changed files with 7 additions and 28 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue