MCPcopy
hub / github.com/webpack/webpack / insertForeignElement

Function insertForeignElement

lib/html/syntax.js:4870–4881  ·  view source on GitHub ↗
(
		/** @type {string} */ tagName,
		/** @type {number} */ ns,
		/** @type {HtmlAttribute[]} */ attributes,
		/** @type {TagPos | null} */ pos
	)

Source from the content-addressed store, hash-verified

4868 };
4869
4870 const insertForeignElement = (
4871 /** @type {string} */ tagName,
4872 /** @type {number} */ ns,
4873 /** @type {HtmlAttribute[]} */ attributes,
4874 /** @type {TagPos | null} */ pos
4875 ) => {
4876 const el = mkEl(tagName, ns, attributes, pos);
4877 const place = appropriatePlace();
4878 insertAtPlace(place, el);
4879 open.push(el);
4880 return el;
4881 };
4882
4883 // ---- scopes ----
4884 const isScopeBoundary = (/** @type {HtmlElement} */ el) => {

Callers 2

foreignContentFunction · 0.85
startTagInBodyFunction · 0.85

Calls 4

mkElFunction · 0.85
appropriatePlaceFunction · 0.85
insertAtPlaceFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected