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

Method setAttribute

src/domTree.ts:243–245  ·  view source on GitHub ↗

* Sets an arbitrary attribute on the span. Warning: use this wisely. Not * all browsers support attributes the same, and having too many custom * attributes is probably bad.

(attribute: string, value: string)

Source from the content-addressed store, hash-verified

241 * attributes is probably bad.
242 */
243 setAttribute(attribute: string, value: string) {
244 this.attributes[attribute] = value;
245 }
246
247 hasClass(className: string): boolean {
248 return this.classes.includes(className);

Callers 15

renderErrorFunction · 0.45
syncOptionsPanelStateFunction · 0.45
syncSidebarWidthModeFunction · 0.45
buildHTMLFunction · 0.45
toNodeFunction · 0.45
toNodeMethod · 0.45
toNodeMethod · 0.45
toNodeMethod · 0.45
buildExpressionFunction · 0.45
html.tsFile · 0.45
phantom.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected