MCPcopy
hub / github.com/jagenjo/webglstudio.js / elt

Function elt

editor/js/extra/codemirror/codemirror.js:8378–8385  ·  view source on GitHub ↗
(tag, content, className, style)

Source from the content-addressed store, hash-verified

8376 // DOM UTILITIES
8377
8378 function elt(tag, content, className, style) {
8379 var e = document.createElement(tag);
8380 if (className) e.className = className;
8381 if (style) e.style.cssText = style;
8382 if (typeof content == "string") e.appendChild(document.createTextNode(content));
8383 else if (content) for (var i = 0; i < content.length; ++i) e.appendChild(content[i]);
8384 return e;
8385 }
8386
8387 var range;
8388 if (document.createRange) range = function(node, start, end, endNode) {

Callers 15

DisplayFunction · 0.85
updateGuttersFunction · 0.85
NativeScrollbarsFunction · 0.85
ensureLineWrappedFunction · 0.85
updateLineBackgroundFunction · 0.85
updateLineGutterFunction · 0.85
insertLineWidgetsForFunction · 0.85
hiddenTextareaFunction · 0.85
drawSelectionCursorFunction · 0.85
addFunction · 0.85
paddingHFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected