MCPcopy
hub / github.com/webpack/webpack / genericRawtext

Function genericRawtext

lib/html/syntax.js:6395–6399  ·  view source on GitHub ↗
(/** @type {StartTagToken} */ t)

Source from the content-addressed store, hash-verified

6393 // just insert the element and switch to "text" mode; text mode appends chars
6394 // and the matching end tag pops.
6395 const genericRawtext = (/** @type {StartTagToken} */ t) => {
6396 insertHtmlElement(t.name, t.attrs, t.pos);
6397 originalMode = mode;
6398 mode = MODE_TEXT;
6399 };
6400 const genericRcdata = (/** @type {StartTagToken} */ t, swallow = false) => {
6401 insertHtmlElement(t.name, t.attrs, t.pos);
6402 if (swallow) t.swallowNewline = true;

Callers 2

buildHtmlAstFunction · 0.85
startTagInBodyFunction · 0.85

Calls 1

insertHtmlElementFunction · 0.85

Tested by

no test coverage detected