Skip to main content
Module

x/packup/deps.ts>Element

📦 Zero-config web application packager in Deno
Go to Latest
class Element
extends Node
Re-export
import { Element } from "https://deno.land/x/packup@v0.1.13/deps.ts";

Constructors

new
Element(
tagName: string,
parentNode: Node | null,
attributes: [string, string][],
key: CTOR_KEY,
)

Properties

attributes: NamedNodeMap & { [attribute: string]: string; }
readonly
classList: DOMTokenList
className: string
id: string
innerHTML: string
innerText: string
readonly
nextElementSibling: Element | null
outerHTML: string
readonly
previousElementSibling: Element | null

Methods

private
_getElementsByClassName(className: string, search: Node[]): Node[]
private
_getElementsByTagName(tagName: string, search: Node[]): Node[]
private
_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(selectors: string): Element | null
querySelectorAll(selectors: string): NodeList
removeAttribute(rawName: string)
setAttribute(rawName: string, value: any)
type alias Element
Re-export
import { type Element } from "https://deno.land/x/packup@v0.1.13/deps.ts";
definition: ConstructibleElement
variable Element
Re-export
import { Element } from "https://deno.land/x/packup@v0.1.13/deps.ts";

type

Pick<ConstructibleElement, keyof ConstructibleElement> & Function