MCPcopy Index your code
hub / github.com/TruthHun/BookStack / setAttribute

Method setAttribute

static/katex/katex.mjs:1095–1097  ·  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, value)

Source from the content-addressed store, hash-verified

1093
1094
1095 setAttribute(attribute, value) {
1096 this.attributes[attribute] = value;
1097 }
1098
1099 hasClass(className) {
1100 return utils.contains(this.classes, className);

Callers 15

_toNodeFunction · 0.45
AnchorFunction · 0.45
katex.jsFile · 0.45
buildHTMLFunction · 0.45
katex_renderErrorFunction · 0.45
toNodeFunction · 0.45
toNodeMethod · 0.45
toNodeMethod · 0.45
toNodeMethod · 0.45
buildHTMLFunction · 0.45
toNodeMethod · 0.45
toNodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected