MCPcopy
hub / github.com/KaTeX/KaTeX / setAttribute

Method setAttribute

src/mathMLTree.ts:68–70  ·  view source on GitHub ↗

* Sets an attribute on a MathML node. MathML depends on attributes to convey a * semantic content, so this is used heavily.

(name: string, value: string)

Source from the content-addressed store, hash-verified

66 * semantic content, so this is used heavily.
67 */
68 setAttribute(name: string, value: string) {
69 this.attributes[name] = value;
70 }
71
72 /**
73 * Gets an attribute on a MathML node.

Callers 15

stretchyMathMLFunction · 0.95
buildMathMLFunction · 0.95
mathmlBuilderFunction · 0.95
mathmlBuilderFunction · 0.95
mathmlBuilderFunction · 0.95
mathmlBuilderFunction · 0.95
mathmlBuilderFunction · 0.95
mathmlBuilderFunction · 0.95
mathmlBuilderFunction · 0.95
mathmlBuilderFunction · 0.95
mathmlBuilderFunction · 0.95
mathmlBuilderFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected