2020-06-21 11:39:32 +02:00
|
|
|
interface Element : Node {
|
2020-10-10 02:48:05 +01:00
|
|
|
readonly attribute DOMString? namespaceURI;
|
2021-05-11 15:16:08 +01:00
|
|
|
readonly attribute DOMString? prefix;
|
|
|
|
readonly attribute DOMString localName;
|
2020-06-21 12:01:13 +02:00
|
|
|
readonly attribute DOMString tagName;
|
|
|
|
|
2020-06-21 11:39:32 +02:00
|
|
|
DOMString? getAttribute(DOMString qualifiedName);
|
2020-12-09 21:32:04 +00:00
|
|
|
undefined setAttribute(DOMString qualifiedName, DOMString value);
|
2020-12-29 20:37:40 +00:00
|
|
|
undefined removeAttribute(DOMString qualifiedName);
|
|
|
|
boolean hasAttribute(DOMString qualifiedName);
|
|
|
|
boolean hasAttributes();
|
2021-10-16 17:00:49 -04:00
|
|
|
[SameObject] readonly attribute NamedNodeMap attributes;
|
2020-06-21 11:39:32 +02:00
|
|
|
|
2021-04-22 21:11:20 +02:00
|
|
|
HTMLCollection getElementsByTagName(DOMString tagName);
|
2021-09-22 18:06:19 +01:00
|
|
|
HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName);
|
2021-04-22 21:11:20 +02:00
|
|
|
HTMLCollection getElementsByClassName(DOMString className);
|
2021-02-07 23:44:01 +01:00
|
|
|
|
2021-09-13 22:42:57 +01:00
|
|
|
// FIXME: This should come from a InnerHTML mixin.
|
|
|
|
[LegacyNullToEmptyString, CEReactions] attribute DOMString innerHTML;
|
|
|
|
|
2020-07-24 13:25:42 +02:00
|
|
|
[Reflect] attribute DOMString id;
|
|
|
|
[Reflect=class] attribute DOMString className;
|
2021-10-18 13:21:23 -04:00
|
|
|
[SameObject, PutForwards=value] readonly attribute DOMTokenList classList;
|
2020-08-03 20:32:06 +02:00
|
|
|
|
2021-09-30 02:16:36 +02:00
|
|
|
boolean matches(DOMString selectors);
|
|
|
|
|
2021-10-28 19:40:14 +01:00
|
|
|
// legacy alias of .matches
|
|
|
|
[ImplementedAs=matches] boolean webkitMatchesSelector(DOMString selectors);
|
|
|
|
|
2020-08-03 20:32:06 +02:00
|
|
|
readonly attribute Element? nextElementSibling;
|
|
|
|
readonly attribute Element? previousElementSibling;
|
2021-03-13 22:39:55 +01:00
|
|
|
|
|
|
|
[ImplementedAs=style_for_bindings] readonly attribute CSSStyleDeclaration style;
|
2021-04-11 17:13:10 +01:00
|
|
|
|
|
|
|
// FIXME: These should all come from a ParentNode mixin
|
|
|
|
readonly attribute Element? firstElementChild;
|
|
|
|
readonly attribute Element? lastElementChild;
|
|
|
|
readonly attribute unsigned long childElementCount;
|
|
|
|
|
|
|
|
Element? querySelector(DOMString selectors);
|
2021-10-02 20:36:39 +01:00
|
|
|
[NewObject] NodeList querySelectorAll(DOMString selectors);
|
2021-09-13 23:01:17 +01:00
|
|
|
|
|
|
|
[SameObject] readonly attribute HTMLCollection children;
|
2021-09-27 00:55:13 +02:00
|
|
|
|
|
|
|
DOMRect getBoundingClientRect();
|
|
|
|
|
2021-09-30 02:17:23 +02:00
|
|
|
readonly attribute long clientTop;
|
|
|
|
readonly attribute long clientLeft;
|
|
|
|
readonly attribute long clientWidth;
|
|
|
|
readonly attribute long clientHeight;
|
|
|
|
|
2021-09-29 16:25:48 +01:00
|
|
|
// FIXME: This should come from a ChildNode mixin
|
|
|
|
[CEReactions, Unscopable, ImplementedAs=remove_binding] undefined remove();
|
|
|
|
|
2020-12-09 21:26:42 +00:00
|
|
|
};
|