MCPcopy
hub / github.com/HubSpot/messenger / elt

Function elt

docs/welcome/lib/executr/lib/CodeMirror/codemirror.js:4405–4412  ·  view source on GitHub ↗
(tag, content, className, style)

Source from the content-addressed store, hash-verified

4403 // DOM UTILITIES
4404
4405 function elt(tag, content, className, style) {
4406 var e = document.createElement(tag);
4407 if (className) e.className = className;
4408 if (style) e.style.cssText = style;
4409 if (typeof content == "string") setTextContent(e, content);
4410 else if (content) for (var i = 0; i < content.length; ++i) e.appendChild(content[i]);
4411 return e;
4412 }
4413
4414 function removeChildren(e) {
4415 // IE will break all parent-child relations in subnodes when setting innerHTML

Callers 15

makeDisplayFunction · 0.85
updateGuttersFunction · 0.85
patchDisplayFunction · 0.85
buildLineElementFunction · 0.85
buildLineWidgetFunction · 0.85
addFunction · 0.85
paddingLeftFunction · 0.85
measureLineInnerFunction · 0.85
textHeightFunction · 0.85
charWidthFunction · 0.85
onDragStartFunction · 0.85

Calls 1

setTextContentFunction · 0.85

Tested by

no test coverage detected