Skip to main content
Module

x/steam_trader/deps.ts>Element

https://deno.land/x/steam_trader
Latest
class Element
extends Node
Re-export
import { Element } from "https://deno.land/x/steam_trader@v0.4.0/deps.ts";

Constructors

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

Properties

attributes: NamedNodeMap & { [attribute: string]: string; }
readonly
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[]
private
_getElementsByTagNameWildcard(search: Node[]): Node[]
getAttribute(name: string): string | null
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
querySelector(selectors: string): Element | null
querySelectorAll(selectors: string): NodeList
removeAttribute(name: string)
setAttribute(name: string, value: any)