2020-06-21 06:39:32 -03:00
|
|
|
interface Element : Node {
|
2020-10-09 22:48:05 -03:00
|
|
|
readonly attribute DOMString? namespaceURI;
|
2021-05-11 11:16:08 -03:00
|
|
|
readonly attribute DOMString? prefix;
|
|
|
|
|
readonly attribute DOMString localName;
|
2020-06-21 07:01:13 -03:00
|
|
|
readonly attribute DOMString tagName;
|
|
|
|
|
|
2020-06-21 06:39:32 -03:00
|
|
|
DOMString? getAttribute(DOMString qualifiedName);
|
2020-12-09 18:32:04 -03:00
|
|
|
undefined setAttribute(DOMString qualifiedName, DOMString value);
|
2020-12-29 17:37:40 -03:00
|
|
|
undefined removeAttribute(DOMString qualifiedName);
|
|
|
|
|
boolean hasAttribute(DOMString qualifiedName);
|
|
|
|
|
boolean hasAttributes();
|
2020-06-21 06:39:32 -03:00
|
|
|
|
2021-04-22 16:11:20 -03:00
|
|
|
HTMLCollection getElementsByTagName(DOMString tagName);
|
|
|
|
|
HTMLCollection getElementsByClassName(DOMString className);
|
2021-02-07 19:44:01 -03:00
|
|
|
|
2021-09-13 18:42:57 -03:00
|
|
|
// FIXME: This should come from a InnerHTML mixin.
|
|
|
|
|
[LegacyNullToEmptyString, CEReactions] attribute DOMString innerHTML;
|
|
|
|
|
|
2020-07-24 08:25:42 -03:00
|
|
|
[Reflect] attribute DOMString id;
|
|
|
|
|
[Reflect=class] attribute DOMString className;
|
2020-08-03 15:32:06 -03:00
|
|
|
|
|
|
|
|
readonly attribute Element? nextElementSibling;
|
|
|
|
|
readonly attribute Element? previousElementSibling;
|
2021-03-13 18:39:55 -03:00
|
|
|
|
|
|
|
|
[ImplementedAs=style_for_bindings] readonly attribute CSSStyleDeclaration style;
|
2021-04-11 13:13:10 -03: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);
|
|
|
|
|
ArrayFromVector querySelectorAll(DOMString selectors);
|
2021-09-13 19:01:17 -03:00
|
|
|
|
|
|
|
|
[SameObject] readonly attribute HTMLCollection children;
|
2020-12-09 18:26:42 -03:00
|
|
|
};
|