(
/** @type {string} */ tagName,
/** @type {number} */ ns,
/** @type {HtmlAttribute[]} */ attributes,
/** @type {TagPos | null} */ pos
)
| 4868 | }; |
| 4869 | |
| 4870 | const insertForeignElement = ( |
| 4871 | /** @type {string} */ tagName, |
| 4872 | /** @type {number} */ ns, |
| 4873 | /** @type {HtmlAttribute[]} */ attributes, |
| 4874 | /** @type {TagPos | null} */ pos |
| 4875 | ) => { |
| 4876 | const el = mkEl(tagName, ns, attributes, pos); |
| 4877 | const place = appropriatePlace(); |
| 4878 | insertAtPlace(place, el); |
| 4879 | open.push(el); |
| 4880 | return el; |
| 4881 | }; |
| 4882 | |
| 4883 | // ---- scopes ---- |
| 4884 | const isScopeBoundary = (/** @type {HtmlElement} */ el) => { |
no test coverage detected