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

incrementOuterHtml

import { incrementOuterHtml } from "https://raw.githubusercontent.com/Hatscat/MetavaScript/main/index.ts";

append some HTML to an Element

@example
// returns "elementId.outerHTML+='<p>hey!</p>'"
incrementOuterHtml("elementId", element("p", { children: "hey", closed: true }))
function incrementOuterHtml(element: string, html: string | string[]): string;
§
incrementOuterHtml(element: string, html: string | string[]): string
[src]

§Parameters

§
element: string
[src]

a variable name referring to an HTML element, it can be the element ID according to the "Named access on the Window object" rule of the HTML specification.

§
html: string | string[]
[src]

§Return Type

§
string
[src]