MCPcopy Index your code
hub / github.com/csev/py4e / elt

Function elt

tools/pythonauto/static/codemirror/codemirror.js:5665–5672  ·  view source on GitHub ↗
(tag, content, className, style)

Source from the content-addressed store, hash-verified

5663 // DOM UTILITIES
5664
5665 function elt(tag, content, className, style) {
5666 var e = document.createElement(tag);
5667 if (className) e.className = className;
5668 if (style) e.style.cssText = style;
5669 if (typeof content == "string") setTextContent(e, content);
5670 else if (content) for (var i = 0; i < content.length; ++i) e.appendChild(content[i]);
5671 return e;
5672 }
5673
5674 function removeChildren(e) {
5675 for (var count = e.childNodes.length; count > 0; --count)

Callers 15

makeDisplayFunction · 0.70
updateGuttersFunction · 0.70
patchDisplayFunction · 0.70
buildLineElementFunction · 0.70
addFunction · 0.70
paddingHFunction · 0.70
measureLineInnerFunction · 0.70
textHeightFunction · 0.70
charWidthFunction · 0.70
onDragStartFunction · 0.70
scrollCursorIntoViewFunction · 0.70

Calls 2

setTextContentFunction · 0.85
appendChildMethod · 0.45

Tested by

no test coverage detected