Class MathMLElementBuilder<T>

This will escape all input strings so it is safe by default. Pass a function that returns a string to explicitly indicate that you want the string treated as innerHTML.

Type Parameters

  • T extends string & keyof MathMLElementTagNameMap

Hierarchy (view full)

Constructors

  • Type Parameters

    • T extends "annotation" | "annotation-xml" | "maction" | "math" | "merror" | "mfrac" | "mi" | "mmultiscripts" | "mn" | "mo" | "mover" | "mpadded" | "mphantom" | "mprescripts" | "mroot" | "mrow" | "ms" | "mspace" | "msqrt" | "mstyle" | "msub" | "msubsup" | "msup" | "mtable" | "mtd" | "mtext" | "mtr" | "munder" | "munderover" | "semantics"

    Parameters

    Returns MathMLElementBuilder<T>

Properties

attrs: object = {}
children: IElementChild[] = []
components: IComponent[] = []
nsAttrs: object = {}
parents?: Set<IBuilder> = ...
props: object = {}
tag: T

Methods