(/** @type {HtmlAttribute[]} */ attrs)
| 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; |
no outgoing calls
no test coverage detected