MCPcopy
hub / github.com/webpack/webpack / closePElement

Function closePElement

lib/html/syntax.js:5050–5058  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 2

closeIfPInButtonScopeFunction · 0.85
endTagInBodyFunction · 0.85

Calls 2

generateImpliedEndTagsFunction · 0.85
popMethod · 0.80

Tested by

no test coverage detected