Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lol_html/mod.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/mod.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