Module

x/nano_jsx/regexDom.ts>HTMLElementSSR

🎯 SSR first, lightweight 1kB JSX library.
Go to Latest
class HTMLElementSSR
import { HTMLElementSSR } from "https://dotland.deno.dev/x/nano_jsx@v0.0.33/regexDom.ts";

Constructors

new
HTMLElementSSR(tag: string)

Properties

private
_ssr: string
readonly
children
readonly
classList
innerHTML: string
innerText: string
isSelfClosing: boolean
nodeType:
| null
| 1
| 2
| 3
| 4
| 5
| 6
| 7
| 8
| 9
| 10
| 11
| 12
readonly
outerHTML
tagName: string

Methods

addEventListener<K extends keyof DocumentEventMap>(
_type: keyof K,
_listener: (this: Document, ev: DocumentEventMap[K]) => any,
_options?: boolean | AddEventListenerOptions | undefined,
)
append(child: any)
appendChild(child: any)
getAttribute(_name: any)
setAttribute(name: string, value: string)
setAttributeNS(
_namespace: string | null,
name: string,
value: string,
)