MCPcopy
hub / github.com/webpack/webpack / adjustedCurrent

Function adjustedCurrent

lib/html/syntax.js:4655–4658  ·  lib/html/syntax.js::adjustedCurrent
()

Source from the content-addressed store, hash-verified

4653
4654 const cur = () => /** @type {HtmlElement} */ (open[open.length - 1]);
4655 const adjustedCurrent = () => {
4656 if (open.length === 1 && fragment) return fragment;
4657 return cur();
4658 };
4659
4660 const mkEl = (
4661 /** @type {string} */ tagName,

Callers 3

processFunction · 0.85
foreignContentFunction · 0.85
buildHtmlAstFunction · 0.85

Calls 1

curFunction · 0.85

Tested by

no test coverage detected