class Element
extends Node
import { Element } from "https://deno.land/x/deno_dom@v0.1.48/src/dom/element.ts";
Constructors
Properties
attributes: NamedNodeMap
readonly
children: HTMLCollectionreadonly
classList: DOMTokenListreadonly
firstElementChild: Element | nullreadonly
lastElementChild: Element | nullreadonly
nextElementSibling: Element | nullreadonly
previousElementSibling: Element | nullMethods
_getElementsByTagName(tagName: string, search: Node[]): Node[]
_getElementsByTagNameWildcard(search: Node[]): Node[]
getAttribute(name: string): string | null
getAttributeNames(): string[]
getElementById(id: string): Element | null
getElementsByClassName(className: string): Element[]
getElementsByTagName(tagName: string): Element[]
getElementsByTagNameNS(_namespace: string, localName: string): Element[]
hasAttribute(name: string): boolean
hasAttributeNS(_namespace: string, name: string): boolean
matches(selectorString: string): boolean
querySelector<T = Element>(selectors: string): T | null
querySelectorAll<T extends Element = Element>(selectors: string): NodeList<T>
remove()
removeAttribute(rawName: string)
replaceWith(...nodes: (Node | string)[])
setAttribute(rawName: string, value: any)
toggleAttribute(rawName: string, force?: boolean): boolean