mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Fix <input>.checked
This commit is contained in:
parent
8a2c746e61
commit
cc6e81103f
1 changed files with 3 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue