2022-02-15 22:40:51 +03:30
|
|
|
#import <HTML/DOMStringMap.idl>
|
2022-03-30 23:35:42 +03:00
|
|
|
#import <DOM/EventHandler.idl>
|
2022-02-15 22:40:51 +03:30
|
|
|
|
2022-10-07 16:45:09 -06:00
|
|
|
// https://html.spec.whatwg.org/multipage/semantics.html#htmlelement
|
|
|
|
|
[Exposed=Window]
|
2020-06-21 14:35:00 +02:00
|
|
|
interface HTMLElement : Element {
|
|
|
|
|
|
2020-07-24 13:16:11 +02:00
|
|
|
[Reflect] attribute DOMString title;
|
|
|
|
|
[Reflect] attribute DOMString lang;
|
2022-11-04 22:56:42 -03:00
|
|
|
attribute DOMString dir;
|
2020-06-21 14:35:00 +02:00
|
|
|
|
2020-11-09 08:15:10 +00:00
|
|
|
[Reflect] attribute boolean hidden;
|
|
|
|
|
|
2020-08-03 02:57:28 +01:00
|
|
|
attribute DOMString contentEditable;
|
|
|
|
|
|
2022-02-15 00:25:51 +01:00
|
|
|
undefined click();
|
|
|
|
|
|
2022-02-06 18:46:26 +01:00
|
|
|
// FIXME: Support the optional FocusOptions parameter.
|
|
|
|
|
undefined focus();
|
|
|
|
|
|
2022-10-02 14:42:47 -06:00
|
|
|
undefined blur();
|
|
|
|
|
|
2020-11-11 09:46:53 +00:00
|
|
|
[LegacyNullToEmptyString] attribute DOMString innerText;
|
2021-02-03 22:47:50 +01:00
|
|
|
|
2021-04-15 20:48:55 +03:00
|
|
|
readonly attribute long offsetTop;
|
|
|
|
|
readonly attribute long offsetLeft;
|
2021-09-30 01:35:19 +02:00
|
|
|
readonly attribute long offsetWidth;
|
|
|
|
|
readonly attribute long offsetHeight;
|
2020-12-09 21:26:42 +00:00
|
|
|
};
|
2022-03-30 23:53:56 +03:00
|
|
|
|
2022-04-01 22:00:22 +03:00
|
|
|
HTMLElement includes GlobalEventHandlers;
|
2022-03-30 23:53:56 +03:00
|
|
|
HTMLElement includes HTMLOrSVGElement;
|
|
|
|
|
|
|
|
|
|
interface mixin HTMLOrSVGElement {
|
|
|
|
|
[SameObject] readonly attribute DOMStringMap dataset;
|
2022-11-05 03:58:14 +00:00
|
|
|
|
2022-11-05 04:24:08 +00:00
|
|
|
[CEReactions, Reflect] attribute boolean autofocus;
|
2022-11-05 03:58:14 +00:00
|
|
|
[CEReactions] attribute long tabIndex;
|
2022-03-30 23:53:56 +03:00
|
|
|
};
|