()
| 5048 | |
| 5049 | // ---- close p ---- |
| 5050 | const closePElement = () => { |
| 5051 | generateImpliedEndTags("p"); |
| 5052 | // pop until a p has been popped |
| 5053 | while (open.length) { |
| 5054 | const el = /** @type {HtmlElement} */ (open.pop()); |
| 5055 | el.end = tokenEnd; |
| 5056 | if (el.namespace === NS_HTML && el.tagName === "p") break; |
| 5057 | } |
| 5058 | }; |
| 5059 | |
| 5060 | const popUntil = (/** @type {string} */ tagName) => { |
| 5061 | while (open.length) { |
no test coverage detected