MCPcopy
hub / github.com/webpack/webpack / adjustMathmlAttrs

Function adjustMathmlAttrs

lib/html/syntax.js:6286–6300  ·  view source on GitHub ↗
(/** @type {HtmlAttribute[]} */ attrs)

Source from the content-addressed store, hash-verified

6284 };
6285
6286 const adjustMathmlAttrs = (/** @type {HtmlAttribute[]} */ attrs) => {
6287 // Only `definitionurl` is rewritten; reuse the original array otherwise.
6288 let out = attrs;
6289 for (let i = 0; i < attrs.length; i++) {
6290 if (attrs[i].name === "definitionurl") {
6291 if (out === attrs) out = [...attrs];
6292 out[i] = {
6293 ...attrs[i],
6294 name: "definitionURL",
6295 serializedName: "definitionURL"
6296 };
6297 }
6298 }
6299 return out;
6300 };
6301
6302 const endTagInBody = (/** @type {EndTagToken} */ t) => {
6303 const name = t.name;

Callers 2

foreignContentFunction · 0.85
startTagInBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected