Skip to main content
Latest
class Element
Re-export
import { Element } from "https://deno.land/x/lean@0.0.6/lib/deps.ts";

Properties

readonly
attributes: IterableIterator<[string, string]>
readonly
namespaceURI: string
readonly
removed: boolean
tagName: string

Methods

after(content: string, options?: ContentTypeOptions): this
append(content: string, options?: ContentTypeOptions): this
before(content: string, options?: ContentTypeOptions): this
getAttribute(name: string): string | null
hasAttribute(name: string): boolean
onEndTag(handler: (this: this, endTag: EndTag) => void | Promise<void>): void
prepend(content: string, options?: ContentTypeOptions): this
remove(): this
removeAttribute(name: string): this
replace(content: string, options?: ContentTypeOptions): this
setAttribute(name: string, value: string): this
setInnerContent(content: string, options?: ContentTypeOptions): this