(/** @type {Set<string>} */ set)
| 5065 | } |
| 5066 | }; |
| 5067 | const popUntilOneOf = (/** @type {Set<string>} */ set) => { |
| 5068 | while (open.length) { |
| 5069 | const el = /** @type {HtmlElement} */ (open.pop()); |
| 5070 | el.end = tokenEnd; |
| 5071 | if (el.namespace === NS_HTML && set.has(el.tagName)) break; |
| 5072 | } |
| 5073 | }; |
| 5074 | |
| 5075 | // ---- reset insertion mode appropriately ---- |
| 5076 | const resetInsertionMode = () => { |
no test coverage detected