2023-03-20 21:31:13 +03:00
|
|
|
#import <CSS/ElementCSSInlineStyle.idl>
|
2022-02-15 22:10:51 +03:00
|
|
|
#import <HTML/DOMStringMap.idl>
|
2023-11-08 21:04:56 +03:00
|
|
|
#import <DOM/Element.idl>
|
2022-03-30 23:35:42 +03:00
|
|
|
#import <DOM/EventHandler.idl>
|
2022-02-15 22:10:51 +03:00
|
|
|
|
2022-10-08 01:45:09 +03:00
|
|
|
// https://html.spec.whatwg.org/multipage/semantics.html#htmlelement
|
2023-09-03 07:42:25 +03:00
|
|
|
[Exposed=Window]
|
2020-06-21 15:35:00 +03:00
|
|
|
interface HTMLElement : Element {
|
|
|
|
|
2023-03-23 10:48:52 +03:00
|
|
|
[HTMLConstructor] constructor();
|
|
|
|
|
2023-10-25 18:26:24 +03:00
|
|
|
// metadata attributes
|
2023-03-01 04:45:18 +03:00
|
|
|
[Reflect, CEReactions] attribute DOMString title;
|
|
|
|
[Reflect, CEReactions] attribute DOMString lang;
|
2023-10-25 18:26:24 +03:00
|
|
|
// FIXME: [CEReactions] attribute boolean translate;
|
2023-03-01 04:45:18 +03:00
|
|
|
[CEReactions] attribute DOMString dir;
|
2020-06-21 15:35:00 +03:00
|
|
|
|
2023-10-25 18:26:24 +03:00
|
|
|
// user interaction
|
2023-03-01 04:45:18 +03:00
|
|
|
[Reflect, CEReactions] attribute boolean hidden;
|
2023-10-25 18:26:24 +03:00
|
|
|
// FIXME: [CEReactions] attribute boolean inert;
|
2022-02-15 02:25:51 +03:00
|
|
|
undefined click();
|
2023-10-25 18:26:24 +03:00
|
|
|
// FIXME: [CEReactions] attribute DOMString accessKey;
|
|
|
|
// FIXME: readonly attribute DOMString accessKeyLabel;
|
|
|
|
// FIXME: [CEReactions] attribute boolean draggable;
|
|
|
|
// FIXME: [CEReactions] attribute boolean spellcheck;
|
|
|
|
// FIXME: [CEReactions] attribute DOMString autocapitalize;
|
2022-02-15 02:25:51 +03:00
|
|
|
|
2023-10-25 18:26:24 +03:00
|
|
|
[LegacyNullToEmptyString, CEReactions] attribute DOMString innerText;
|
|
|
|
// FIXME: [LegacyNullToEmptyString, CEReactions] attribute DOMString outerText;
|
2022-02-06 20:46:26 +03:00
|
|
|
|
2023-10-25 18:26:24 +03:00
|
|
|
// FIXME: ElementInternals attachInternals();
|
2022-10-02 23:42:47 +03:00
|
|
|
|
2023-10-25 18:26:24 +03:00
|
|
|
// The popover API
|
|
|
|
// FIXME: undefined showPopover();
|
|
|
|
// FIXME: undefined hidePopover();
|
|
|
|
// FIXME: boolean togglePopover(optional boolean force);
|
|
|
|
// FIXME: [CEReactions] attribute DOMString? popover;
|
2021-02-04 00:47:50 +03:00
|
|
|
|
2023-10-25 18:26:24 +03:00
|
|
|
// https://drafts.csswg.org/cssom-view/#extensions-to-the-htmlelement-interface
|
2023-12-10 15:47:16 +03:00
|
|
|
readonly attribute Element? offsetParent;
|
2021-04-15 20:48:55 +03:00
|
|
|
readonly attribute long offsetTop;
|
|
|
|
readonly attribute long offsetLeft;
|
2021-09-30 02:35:19 +03:00
|
|
|
readonly attribute long offsetWidth;
|
|
|
|
readonly attribute long offsetHeight;
|
2023-10-25 18:26:24 +03:00
|
|
|
|
2020-12-10 00:26:42 +03:00
|
|
|
};
|
2022-03-30 23:53:56 +03:00
|
|
|
|
2022-04-01 22:00:22 +03:00
|
|
|
HTMLElement includes GlobalEventHandlers;
|
2023-10-25 18:26:24 +03:00
|
|
|
HTMLElement includes ElementContentEditable;
|
2022-03-30 23:53:56 +03:00
|
|
|
HTMLElement includes HTMLOrSVGElement;
|
|
|
|
|
2023-11-08 05:29:22 +03:00
|
|
|
// https://html.spec.whatwg.org/#elementcontenteditable
|
2023-10-25 18:26:24 +03:00
|
|
|
interface mixin ElementContentEditable {
|
|
|
|
[CEReactions] attribute DOMString contentEditable;
|
|
|
|
// FIXME: [CEReactions] attribute DOMString enterKeyHint;
|
|
|
|
// FIXME: readonly attribute boolean isContentEditable;
|
|
|
|
// FIXME: [CEReactions] attribute DOMString inputMode;
|
|
|
|
};
|
|
|
|
|
2023-11-08 05:29:22 +03:00
|
|
|
// https://html.spec.whatwg.org/#htmlorsvgelement
|
2022-03-30 23:53:56 +03:00
|
|
|
interface mixin HTMLOrSVGElement {
|
|
|
|
[SameObject] readonly attribute DOMStringMap dataset;
|
2023-10-25 18:26:24 +03:00
|
|
|
// FIXME: attribute DOMString nonce; // intentionally no [CEReactions]
|
2022-11-05 06:58:14 +03:00
|
|
|
|
2022-11-05 07:24:08 +03:00
|
|
|
[CEReactions, Reflect] attribute boolean autofocus;
|
2022-11-05 06:58:14 +03:00
|
|
|
[CEReactions] attribute long tabIndex;
|
2023-10-25 18:26:24 +03:00
|
|
|
// FIXME: Support the optional FocusOptions parameter.
|
|
|
|
undefined focus();
|
|
|
|
undefined blur();
|
2022-03-30 23:53:56 +03:00
|
|
|
};
|
2023-03-20 21:31:13 +03:00
|
|
|
|
|
|
|
HTMLElement includes ElementCSSInlineStyle;
|