Skip to main content
Module

x/lol_html/types.d.ts>Element

The Low Output Latency streaming HTML rewriter/parser with CSS-selector based API, in Webassembly.
Go to Latest
class Element
import { Element } from "https://deno.land/x/lol_html@0.0.6/types.d.ts";

Properties

readonly
attributes: any
readonly
namespaceURI: any
readonly
removed: boolean
tagName: string

Methods

after(content: string, content_type?: ContentType): void
append(content: string, content_type?: ContentType): void
before(content: string, content_type?: ContentType): void
free(): void
getAttribute(name: string): string | undefined
hasAttribute(name: string): boolean
prepend(content: string, content_type?: ContentType): void
remove(): void
removeAttribute(name: string): void
replace(content: string, content_type?: ContentType): void
setAttribute(name: string, value: string): void
setInnerContent(content: string, content_type?: ContentType): void