MCPcopy
hub / github.com/webpack/webpack / closeIfPInButtonScope

Function closeIfPInButtonScope

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

Source from the content-addressed store, hash-verified

5954 };
5955
5956 const closeIfPInButtonScope = () => {
5957 if (inButtonScope("p")) closePElement();
5958 };
5959
5960 // "any other end tag" in body: pop to the matching open element, stopping at
5961 // the first special element; also the adoption agency's no-element fallback.

Callers 1

startTagInBodyFunction · 0.85

Calls 2

inButtonScopeFunction · 0.85
closePElementFunction · 0.85

Tested by

no test coverage detected