diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-10-11 02:54:16 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2014-10-11 09:48:16 +0530 |
commit | cc6e81103f60ed68fecc935b02db9f6fc97340f8 (patch) | |
tree | 541ef654fd8e70def56a2400af06433302126fd8 /components/script | |
parent | 8a2c746e6162e1301f38419130dbc9c1ff83a03a (diff) | |
download | servo-cc6e81103f60ed68fecc935b02db9f6fc97340f8.tar.gz servo-cc6e81103f60ed68fecc935b02db9f6fc97340f8.zip |
Fix <input>.checked
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/htmlinputelement.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/htmlinputelement.rs b/components/script/dom/htmlinputelement.rs index 162be352bba..6f17b697af8 100644 --- a/components/script/dom/htmlinputelement.rs +++ b/components/script/dom/htmlinputelement.rs @@ -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") |