mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Use attribute getter/setter macros for misc DOM attributes.
This fixes a few minor bugs. Also adds some better testing for "unsigned long" attributes.
This commit is contained in:
parent
285e29c066
commit
cf8f2b1874
9 changed files with 214 additions and 67 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue