aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmloptionelement.rs
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2015-11-01 12:47:28 -0800
committerEli Friedman <eli.friedman@gmail.com>2015-11-01 12:47:28 -0800
commitcf8f2b1874a83df30f785e063139e808de690c78 (patch)
tree6c1fb45af86f94555e4451fcbd6b24c1a809b861 /components/script/dom/htmloptionelement.rs
parent285e29c06637f31a8b8a27c2e454468717924ebd (diff)
downloadservo-cf8f2b1874a83df30f785e063139e808de690c78.tar.gz
servo-cf8f2b1874a83df30f785e063139e808de690c78.zip
Use attribute getter/setter macros for misc DOM attributes.
This fixes a few minor bugs. Also adds some better testing for "unsigned long" attributes.
Diffstat (limited to 'components/script/dom/htmloptionelement.rs')
-rw-r--r--components/script/dom/htmloptionelement.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/components/script/dom/htmloptionelement.rs b/components/script/dom/htmloptionelement.rs
index 8c7dea8ac1e..03ea7aabf84 100644
--- a/components/script/dom/htmloptionelement.rs
+++ b/components/script/dom/htmloptionelement.rs
@@ -91,9 +91,7 @@ impl HTMLOptionElementMethods for HTMLOptionElement {
make_bool_getter!(Disabled);
// https://html.spec.whatwg.org/multipage/#dom-option-disabled
- fn SetDisabled(&self, disabled: bool) {
- self.upcast::<Element>().set_bool_attribute(&atom!("disabled"), disabled)
- }
+ make_bool_setter!(SetDisabled, "disabled");
// https://html.spec.whatwg.org/multipage/#dom-option-text
fn Text(&self) -> DOMString {