MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / elt

Function elt

static/js/codemirror/codemirror.js:4998–5005  ·  view source on GitHub ↗
(tag, content, className, style)

Source from the content-addressed store, hash-verified

4996 // DOM UTILITIES
4997
4998 function elt(tag, content, className, style) {
4999 var e = document.createElement(tag);
5000 if (className) e.className = className;
5001 if (style) e.style.cssText = style;
5002 if (typeof content == "string") setTextContent(e, content);
5003 else if (content) for (var i = 0; i < content.length; ++i) e.appendChild(content[i]);
5004 return e;
5005 }
5006
5007 function removeChildren(e) {
5008 // 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
addFunction · 0.85
paddingLeftFunction · 0.85
measureLineInnerFunction · 0.85
textHeightFunction · 0.85
charWidthFunction · 0.85
onDragStartFunction · 0.85
markTextFunction · 0.85

Calls 1

setTextContentFunction · 0.85

Tested by

no test coverage detected