class Element
extends Node
Re-export
import { Element } from "https://deno.land/x/lume@v2.4.2/deps/dom.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
import { type Element } from "https://deno.land/x/lume@v2.4.2/deps/dom.ts";
definition: ConstructibleElement
import { Element } from "https://deno.land/x/lume@v2.4.2/deps/dom.ts";