mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Add form getter for input/button elements; update test expectations
This commit is contained in:
parent
ed30923156
commit
b677f0f4ae
6 changed files with 13 additions and 21 deletions
|
@ -229,6 +229,11 @@ impl HTMLInputElementMethods for HTMLInputElement {
|
|||
// https://www.whatwg.org/html/#dom-fe-disabled
|
||||
make_bool_setter!(SetDisabled, "disabled");
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-fae-form
|
||||
fn GetForm(&self) -> Option<Root<HTMLFormElement>> {
|
||||
self.form_owner()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-input-defaultchecked
|
||||
make_bool_getter!(DefaultChecked, "checked");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue