[
CustomToJSObject,
DOMJIT,
JSCustomHeader,
JSGenerateToNativeObject,
ExportMacro=WEBCORE_EXPORT,
] interface Element : Node {
readonly attribute DOMString? namespaceURI;
readonly attribute DOMString? prefix;
readonly attribute DOMString localName;
readonly attribute DOMString tagName;
[CEReactions, Reflect] attribute DOMString id;
[CEReactions, Reflect=class] attribute DOMString className;
[PutForwards=value] readonly attribute DOMTokenList classList; [CEReactions, EnabledAtRuntime=ShadowDOM, Reflect, Unscopable] attribute DOMString slot;
[DOMJIT=ReadDOM] boolean hasAttributes();
readonly attribute NamedNodeMap attributes; sequence<DOMString> getAttributeNames();
[DOMJIT=ReadDOM] DOMString? getAttribute(DOMString qualifiedName);
DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName);
[CEReactions, MayThrowException] void setAttribute(DOMString qualifiedName, DOMString value);
[CEReactions, MayThrowException] void setAttributeNS(DOMString? namespaceURI, DOMString qualifiedName, DOMString value);
[CEReactions] void removeAttribute(DOMString qualifiedName);
[CEReactions] void removeAttributeNS(DOMString? namespaceURI, DOMString localName);
[CEReactions, MayThrowException] boolean toggleAttribute(DOMString qualifiedName, optional boolean force);
boolean hasAttribute(DOMString qualifiedName);
boolean hasAttributeNS(DOMString? namespaceURI, DOMString localName);
[DOMJIT=ReadDOM] Attr? getAttributeNode(DOMString qualifiedName);
Attr? getAttributeNodeNS(DOMString? namespaceURI, DOMString localName);
[CEReactions, MayThrowException] Attr? setAttributeNode(Attr attr);
[CEReactions, MayThrowException] Attr? setAttributeNodeNS(Attr attr);
[CEReactions, MayThrowException] Attr removeAttributeNode(Attr attr);
[EnabledAtRuntime=ShadowDOM, MayThrowException] ShadowRoot attachShadow(ShadowRootInit init);
[EnabledAtRuntime=ShadowDOM, ImplementedAs=shadowRootForBindings, CallWith=ExecState] readonly attribute ShadowRoot? shadowRoot;
[MayThrowException] Element? closest(DOMString selectors);
[MayThrowException] boolean matches(DOMString selectors);
[ImplementedAs=matches, MayThrowException] boolean webkitMatchesSelector(DOMString selectors);
[DOMJIT=ReadDOM] HTMLCollection getElementsByTagName(DOMString qualifiedName);
HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString localName);
HTMLCollection getElementsByClassName(DOMString name);
[CEReactions, MayThrowException] Element? insertAdjacentElement(DOMString where, Element element); [MayThrowException] void insertAdjacentText(DOMString where, DOMString data);
DOMRectList getClientRects();
[NewObject] DOMRect getBoundingClientRect();
void scrollIntoView(optional (boolean or ScrollIntoViewOptions) arg);
[ImplementedAs=scrollTo] void scroll(optional ScrollToOptions options);
[ImplementedAs=scrollTo] void scroll(unrestricted double x, unrestricted double y);
void scrollTo(optional ScrollToOptions options);
void scrollTo(unrestricted double x, unrestricted double y);
void scrollBy(optional ScrollToOptions option);
void scrollBy(unrestricted double x, unrestricted double y);
attribute long scrollTop; attribute long scrollLeft; readonly attribute long scrollWidth;
readonly attribute long scrollHeight;
readonly attribute double clientTop; readonly attribute double clientLeft; readonly attribute double clientWidth; readonly attribute double clientHeight;
[CEReactions] attribute [TreatNullAs=EmptyString] DOMString innerHTML;
[CEReactions] attribute [TreatNullAs=EmptyString] DOMString outerHTML;
[CEReactions, MayThrowException] void insertAdjacentHTML(DOMString position, DOMString text);
[Conditional=FULLSCREEN_API, EnabledBySetting=FullScreen, ImplementedAs=webkitRequestFullscreen] void webkitRequestFullScreen(); [Conditional=FULLSCREEN_API, EnabledBySetting=FullScreen] void webkitRequestFullscreen();
[Conditional=POINTER_LOCK] void requestPointerLock();
void scrollIntoViewIfNeeded(optional boolean centerIfNeeded = true);
[NotEnumerable] attribute EventHandler onselectstart;
[NotEnumerable, Conditional=IOS_GESTURE_EVENTS] attribute EventHandler ongesturechange;
[NotEnumerable, Conditional=IOS_GESTURE_EVENTS] attribute EventHandler ongestureend;
[NotEnumerable, Conditional=IOS_GESTURE_EVENTS] attribute EventHandler ongesturestart;
[NotEnumerable, ImplementedAs=onwebkitAnimationEnd] attribute EventHandler onwebkitanimationend;
[NotEnumerable, ImplementedAs=onwebkitAnimationIteration] attribute EventHandler onwebkitanimationiteration;
[NotEnumerable, ImplementedAs=onwebkitAnimationStart] attribute EventHandler onwebkitanimationstart;
[NotEnumerable, ImplementedAs=onwebkitTransitionEnd] attribute EventHandler onwebkittransitionend;
[NotEnumerable, Conditional=FULLSCREEN_API, EnabledBySetting=FullScreen] attribute EventHandler onwebkitfullscreenchange;
[NotEnumerable, Conditional=FULLSCREEN_API, EnabledBySetting=FullScreen] attribute EventHandler onwebkitfullscreenerror;
[NotEnumerable] attribute EventHandler onfocusin;
[NotEnumerable] attribute EventHandler onfocusout;
[NotEnumerable] attribute EventHandler onbeforeload;
[NotEnumerable, Conditional=LEGACY_ENCRYPTED_MEDIA, EnabledAtRuntime=LegacyEncryptedMediaAPI] attribute EventHandler onwebkitneedkey;
[NotEnumerable, Conditional=VIDEO_PRESENTATION_MODE] attribute EventHandler onwebkitpresentationmodechanged;
[NotEnumerable, Conditional=WIRELESS_PLAYBACK_TARGET] attribute EventHandler onwebkitcurrentplaybacktargetiswirelesschanged;
[NotEnumerable, Conditional=WIRELESS_PLAYBACK_TARGET] attribute EventHandler onwebkitplaybacktargetavailabilitychanged;
[EnabledAtRuntime=AccessibilityObjectModel] attribute EventHandler onaccessiblecontextmenu;
[EnabledAtRuntime=AccessibilityObjectModel] attribute EventHandler onaccessibleclick;
[EnabledAtRuntime=AccessibilityObjectModel] attribute EventHandler onaccessibledecrement;
[EnabledAtRuntime=AccessibilityObjectModel] attribute EventHandler onaccessibledismiss;
[EnabledAtRuntime=AccessibilityObjectModel] attribute EventHandler onaccessiblefocus;
[EnabledAtRuntime=AccessibilityObjectModel] attribute EventHandler onaccessibleincrement;
[EnabledAtRuntime=AccessibilityObjectModel] attribute EventHandler onaccessiblescrollintoview;
[EnabledAtRuntime=AccessibilityObjectModel] attribute EventHandler onaccessiblesetvalue;
[EnabledAtRuntime=AccessibilityObjectModel] attribute EventHandler onaccessibleselect;
};
dictionary ShadowRootInit {
required ShadowRootMode mode;
};
Element implements AccessibilityRole;
Element implements AriaAttributes;
Element implements Animatable;
Element implements ChildNode;
Element implements DocumentAndElementEventHandlers;
Element implements NonDocumentTypeChildNode;
Element implements ParentNode;
Element implements Slotable;