mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement name and value attributes of HTMLButtonElement (fixes #6003)
Implemented getter and setter of the attributes.
This commit is contained in:
parent
c76d73d124
commit
94c3077edc
4 changed files with 16 additions and 274 deletions
|
@ -108,6 +108,18 @@ impl<'a> HTMLButtonElementMethods for JSRef<'a, HTMLButtonElement> {
|
|||
make_getter!(FormTarget);
|
||||
|
||||
make_setter!(SetFormTarget, "formtarget");
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-fe-name
|
||||
make_getter!(Name);
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-fe-name
|
||||
make_setter!(SetName, "name");
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-button-value
|
||||
make_getter!(Value);
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-button-value
|
||||
make_setter!(SetValue, "value");
|
||||
}
|
||||
|
||||
impl<'a> VirtualMethods for JSRef<'a, HTMLButtonElement> {
|
||||
|
|
|
@ -6,16 +6,16 @@
|
|||
// https://www.whatwg.org/html/#htmlbuttonelement
|
||||
interface HTMLButtonElement : HTMLElement {
|
||||
// attribute boolean autofocus;
|
||||
attribute boolean disabled;
|
||||
attribute boolean disabled;
|
||||
//readonly attribute HTMLFormElement? form;
|
||||
attribute DOMString formAction;
|
||||
attribute DOMString formEnctype;
|
||||
attribute DOMString formMethod;
|
||||
// attribute boolean formNoValidate;
|
||||
attribute DOMString formTarget;
|
||||
// attribute DOMString name;
|
||||
attribute DOMString type;
|
||||
// attribute DOMString value;
|
||||
attribute DOMString name;
|
||||
attribute DOMString type;
|
||||
attribute DOMString value;
|
||||
// attribute HTMLMenuElement? menu;
|
||||
|
||||
//readonly attribute boolean willValidate;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue