import { Element } from "https://deno.land/x/gauntlet@v0.0.9/imports/happy_dom.ts";
Element.
Properties
First element child.
Last element child.
Next element sibling.
Previous element sibling.
Methods
Returns attribute name.
Inserts a set of Node or DOMString objects in the children list of this ChildNode's parent, just after this ChildNode. DOMString objects are inserted as equivalent Text nodes.
Inserts a set of Node objects or DOMString objects after the last child of the ParentNode. DOMString objects are inserted as equivalent Text nodes.
Append a child node to childNodes.
Attaches a shadow root.
Attribute changed callback.
Inserts a set of Node or DOMString objects in the children list of this ChildNode's parent, just before this ChildNode. DOMString objects are inserted as equivalent Text nodes.
Returns a range.
Returns attribute value.
Returns an Attr node.
Returns a namespaced Attr node.
Returns namespace attribute value.
Returns the size of an element and its position relative to the viewport.
Returns an elements by class name.
Returns an elements by tag name.
Returns an elements by tag name and namespace.
Returns a boolean value indicating whether the specified element has the attribute or not.
Returns a boolean value indicating whether the specified element has the namespace attribute or not.
Returns "true" if the element has attributes.
Inserts a node to the given position.
Inserts an HTML string to the given position.
Inserts text to the given position.
Inserts a node before another.
The matches() method checks to see if the Element would be selected by the provided selectorString.
Inserts a set of Node objects or DOMString objects before the first child of the ParentNode. DOMString objects are inserted as equivalent Text nodes.
Query CSS Selector to find matching node.
Query CSS selector to find matching nodes.
Removes the node from its parent.
Removes an attribute.
Removes an Attr node.
Removes an Attr node.
Removes a namespace attribute.
Remove Child element from childNodes array.
Replaces the existing children of a node with a specified new set of children.
The Node.replaceWith() method replaces this Node in the children list of its parent with a set of Node or DOMString objects.
Scrolls to a particular set of coordinates.
Scrolls to a particular set of coordinates.
Sets an attribute.
The setAttributeNode() method adds a new Attr node to the specified element.
The setAttributeNodeNS() method adds a new Attr node to the specified element.
Sets a namespace attribute.
Converts to string.