Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Element

import { Element } from "https://raw.githubusercontent.com/worker-tools/html-rewriter/master/index.ts";
class Element {
readonly attributes: IterableIterator<[string, string]>;
readonly namespaceURI: string;
readonly removed: boolean;
tagName: string;
 
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;
removeAndKeepContent(): this;
removeAttribute(name: string): this;
replace(content: string, options?: ContentTypeOptions): this;
setAttribute(name: string, value: string): this;
setInnerContent(content: string, options?: ContentTypeOptions): this;
}

§Properties

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

§Methods

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