dom_shim.mjs provides a lightweight and performant shim for DOM node and element classes. Allows server-side rendering with prax
.
import * as ds from 'https://cdn.jsdelivr.net/npm/@mitranim/js@0.1.59/dom_shim.mjs'
The following APIs are exported but undocumented. Check dom_shim.mjs.
const refKey
const dataKey
const nameKey
const valueKey
const styleKey
const doctypeKey
const datasetKey
const publicIdKey
const systemIdKey
const classListKey
const localNameKey
const attributesKey
const parentNodeKey
const childNodesKey
const namespaceURIKey
const ownerDocumentKey
const implementationKey
const documentElementKey
function isChildNode
function reqChildNode
function optChildNode
function isParentNode
function reqParentNode
function optParentNode
function isElement
function reqElement
function optElement
function isAttr
function reqAttr
function optAttr
function isText
function reqText
function optText
function isComment
function reqComment
function optComment
function isDocument
function reqDocument
function optDocument
function isDocumentType
function reqDocumentType
function optDocumentType
function isFragment
function reqFragment
function optFragment
function isDomImpl
function reqDomImpl
function optDomImpl
class Node
class Textable
class TextableElementParent
class DocumentFragment
class Void
class Data
class CharacterData
class Text
class Comment
class Attr
class NamedNodeMap
class Element
class HTMLElement
class HTMLMetaElement
class HTMLAnchorElement
class HTMLLabelElement
class HTMLButtonElement
class HTMLInputElement
class HTMLTextAreaElement
class HTMLObjectElement
class HTMLOutputElement
class HTMLSelectElement
class HTMLOptionElement
class HTMLFieldSetElement
class HTMLFormElement
class HTMLTableElement
class HTMLScriptElement
class SVGElement
class DocumentType
class Document
class HTMLDocument
class DOMImplementation
class DictPh
class StylePh
class ClassList
class HTMLFormControlsCollection
class FormControlMap
class RadioNodeList
class GlobPh
const global
const document
const customElements
function escapeAttr
function escapeText
function escapeChar
function unescape
function unescapeMatch
const styleToCssCache
const camelToDataCache
const dataToCamelCache
const outerHtmlDyn