MCPcopy
hub / github.com/witheve/Eve / elt

Function elt

src/codemirror.js:8405–8412  ·  view source on GitHub ↗
(tag, content, className, style)

Source from the content-addressed store, hash-verified

8403 // DOM UTILITIES
8404
8405 function elt(tag, content, className, style) {
8406 var e = document.createElement(tag);
8407 if (className) e.className = className;
8408 if (style) e.style.cssText = style;
8409 if (typeof content == "string") e.appendChild(document.createTextNode(content));
8410 else if (content) for (var i = 0; i < content.length; ++i) e.appendChild(content[i]);
8411 return e;
8412 }
8413
8414 var range;
8415 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