Fix <input>.checked

This commit is contained in:
Manish Goregaokar 2014-10-11 02:54:16 +05:30
parent 8a2c746e61
commit cc6e81103f

View file

@ -121,7 +121,9 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
make_bool_setter!(SetDisabled, "disabled")
// https://html.spec.whatwg.org/multipage/forms.html#dom-input-checked
make_bool_getter!(Checked)
fn Checked(self) -> bool {
self.checked.get()
}
// https://html.spec.whatwg.org/multipage/forms.html#dom-input-checked
make_bool_setter!(SetChecked, "checked")