MCPcopy Create free account
hub / github.com/TruthHun/BookStack / elt

Function elt

static/mergely/lib/codemirror.js:8373–8380  ·  view source on GitHub ↗
(tag, content, className, style)

Source from the content-addressed store, hash-verified

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

Callers 15

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

Calls

no outgoing calls

Tested by

no test coverage detected