MCPcopy
hub / github.com/webpack/webpack / popUntilOneOf

Function popUntilOneOf

lib/html/syntax.js:5067–5073  ·  view source on GitHub ↗
(/** @type {Set<string>} */ set)

Source from the content-addressed store, hash-verified

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

Callers 2

endTagInBodyFunction · 0.85
closeCellFunction · 0.85

Calls 2

popMethod · 0.80
hasMethod · 0.45

Tested by

no test coverage detected