MCPcopy
hub / github.com/orestbida/cookieconsent / createNode

Function createNode

src/utils/general.js:66–74  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

64 * @param {keyof HTMLElementTagNameMap} type
65 */
66export const createNode = (type) => {
67 const el = document.createElement(type);
68
69 if (type === BUTTON_TAG) {
70 el.type = type;
71 }
72
73 return el;
74};
75
76/**
77 * @param {HTMLElement} el

Callers 8

loadScriptsHelperFunction · 0.90
loadScriptFunction · 0.90
createPreferencesModalFunction · 0.90
createToggleLabelFunction · 0.90
createMainContainerFunction · 0.90
createFocusSpanFunction · 0.90
createConsentModalFunction · 0.90
general.test.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…