mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Correct <input>.value
This commit is contained in:
parent
b28a4c8858
commit
10d9a66ce1
1 changed files with 3 additions and 1 deletions
|
@ -155,7 +155,9 @@ impl<'a> HTMLInputElementMethods for JSRef<'a, HTMLInputElement> {
|
|||
make_setter!(SetType, "type")
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/forms.html#dom-input-value
|
||||
make_getter!(Value)
|
||||
fn Value(self) -> DOMString {
|
||||
self.value.borrow().clone().unwrap_or("".to_string())
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/forms.html#dom-input-value
|
||||
make_setter!(SetValue, "value")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue