IElement
public interface IElement : INode, IEventTarget, IMarkupFormattable, IParentNode, IChildNode, INonDocumentTypeChildNode
The Element interface represents an object within a DOM document.
Gets the assigned slot of the current element, if any.
Gets the sequence of associated attributes.
Gets the list of class names.
Gets or sets the value of the class attribute.
Gets or sets the id value of the element.
Gets or sets the inner HTML (excluding the current element) of the
element.
Gets if the element is currently focused.
Gets the local part of the qualified name of this element.
Gets the namespace URI of this element.
Gets or sets the outer HTML (including the current element) of the
element.
Gets the namespace prefix of this element.
Gets the shadow root of the current element, if any.
Gets the value of the slot attribute.
Gets the name of the tag that represents the current element.
Creates a new shadow root for the current element, if there is none
already.
Returns the value of the named attribute on the specified element.
Returns the value of the named attribute on the specified element.
Returns a set of elements which have all the given class names.
Returns a NodeList of elements with the given tag name. The
complete document is searched, including the root node.
Returns a list of elements with the given tag name belonging to the
given namespace. The complete document is searched, including the
root node.
Returns a boolean value indicating whether the specified element
has the specified attribute or not.
Returns a boolean value indicating whether the specified element
has the specified attribute or not.
Inserts new HTML elements specified by the given HTML string at
a position relative to the current element specified by the
position.
Checks if the element is matched by the given selector.
Creates a pseudo element for the current element.
Removes an attribute from the specified element.
Removes an attribute from the specified element.
Adds a new attribute or changes the value of an existing attribute
on the specified element.
Adds a new attribute or changes the value of an existing attribute
on the specified element.