mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-05 15:49:15 +00:00
Some checks are pending
CI / macOS, arm64, Sanitizer, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
This porting effort makes it pretty clear we will want a UTF-16-aware GenericLexer. But for now, we can actually make ASCII assumptions about what we are parsing, and act accordingly.
40 lines
1.6 KiB
Text
40 lines
1.6 KiB
Text
#import <HTML/HTMLElement.idl>
|
|
#import <HTML/HTMLFormElement.idl>
|
|
#import <HTML/PopoverInvokerElement.idl>
|
|
#import <HTML/ValidityState.idl>
|
|
|
|
[MissingValueDefault=submit, InvalidValueDefault=submit]
|
|
enum ButtonTypeState {
|
|
"submit",
|
|
"reset",
|
|
"button"
|
|
};
|
|
|
|
// https://html.spec.whatwg.org/multipage/semantics.html#htmlbuttonelement
|
|
[Exposed=Window]
|
|
interface HTMLButtonElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions] attribute DOMString command;
|
|
[CEReactions, Reflect=commandfor] attribute Element? commandForElement;
|
|
[CEReactions, Reflect] attribute boolean disabled;
|
|
readonly attribute HTMLFormElement? form;
|
|
[CEReactions] attribute USVString formAction;
|
|
[CEReactions, Reflect=formenctype, Enumerated=FormEnctypeAttribute] attribute DOMString formEnctype;
|
|
[CEReactions, Reflect=formmethod, Enumerated=FormMethodAttribute] attribute DOMString formMethod;
|
|
[CEReactions, Reflect=formnovalidate] attribute boolean formNoValidate;
|
|
[CEReactions, Reflect=formtarget] attribute DOMString formTarget;
|
|
[CEReactions, Reflect] attribute DOMString name;
|
|
[CEReactions, ImplementedAs=type_for_bindings, Enumerated=ButtonTypeState] attribute DOMString type;
|
|
[CEReactions, Reflect] attribute Utf16DOMString value;
|
|
|
|
readonly attribute boolean willValidate;
|
|
readonly attribute ValidityState validity;
|
|
[FIXME] readonly attribute DOMString validationMessage;
|
|
[FIXME] boolean checkValidity();
|
|
[FIXME] boolean reportValidity();
|
|
undefined setCustomValidity(DOMString error);
|
|
|
|
readonly attribute NodeList labels;
|
|
};
|
|
HTMLButtonElement includes PopoverInvokerElement;
|