Skip to main content
Module

x/aleph/vendor/deno-dom/element.ts>Element

The Full-stack Framework in Deno.
Go to Latest
class Element
extends Node
import { Element } from "https://deno.land/x/aleph@v0.2.13/vendor/deno-dom/element.ts";

Constructors

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

Properties

attributes: NamedNodeMap & { [attribute: string]: string; }
classList: DOMTokenList
className: string
id: string
innerHTML: 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[]
getAttribute(name: string): string | null
getContext(type: 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
setAttribute(name: string, value: any)