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

Function elt

static/editor.md/lib/codemirror/lib/codemirror.js:8137–8144  ·  view source on GitHub ↗
(tag, content, className, style)

Source from the content-addressed store, hash-verified

8135 // DOM UTILITIES
8136
8137 function elt(tag, content, className, style) {
8138 var e = document.createElement(tag);
8139 if (className) e.className = className;
8140 if (style) e.style.cssText = style;
8141 if (typeof content == "string") e.appendChild(document.createTextNode(content));
8142 else if (content) for (var i = 0; i < content.length; ++i) e.appendChild(content[i]);
8143 return e;
8144 }
8145
8146 var range;
8147 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