Index: core/html/HTMLButtonElement.idl |
diff --git a/core/html/HTMLButtonElement.idl b/core/html/HTMLButtonElement.idl |
index 7845755cff043ba4c5ade1f803b1fec5c12eccdc..6ab20ee99aa5ea06bb9e092c98529a4c26bb44dd 100644 |
--- a/core/html/HTMLButtonElement.idl |
+++ b/core/html/HTMLButtonElement.idl |
@@ -18,10 +18,12 @@ |
* Boston, MA 02110-1301, USA. |
*/ |
+// https://html.spec.whatwg.org/#the-button-element |
+ |
interface HTMLButtonElement : HTMLElement { |
[Reflect] attribute boolean autofocus; |
[Reflect] attribute boolean disabled; |
- [ImplementedAs=formOwner] readonly attribute HTMLFormElement form; |
+ [ImplementedAs=formOwner] readonly attribute HTMLFormElement? form; |
[Reflect, URL] attribute DOMString formAction; |
attribute DOMString formEnctype; |
attribute DOMString formMethod; |
@@ -30,12 +32,14 @@ interface HTMLButtonElement : HTMLElement { |
[Reflect] attribute DOMString name; |
attribute DOMString type; |
[Reflect] attribute DOMString value; |
+ // FIXME: attribute HTMLMenuElement? menu; |
readonly attribute boolean willValidate; |
readonly attribute ValidityState validity; |
readonly attribute DOMString validationMessage; |
boolean checkValidity(); |
- void setCustomValidity([TreatUndefinedAs=NullString] DOMString? error); |
+ boolean reportValidity(); |
+ void setCustomValidity(DOMString error); |
readonly attribute NodeList labels; |
}; |