MCPcopy Index your code
hub / github.com/DHTMLX/gantt / elt

Function elt

samples/common/codehighlight/codemirror.js:71–78  ·  view source on GitHub ↗
(tag, content, className, style)

Source from the content-addressed store, hash-verified

69 }
70
71 function elt(tag, content, className, style) {
72 var e = document.createElement(tag);
73 if (className) { e.className = className; }
74 if (style) { e.style.cssText = style; }
75 if (typeof content == "string") { e.appendChild(document.createTextNode(content)); }
76 else if (content) { for (var i = 0; i < content.length; ++i) { e.appendChild(content[i]); } }
77 return e
78 }
79 // wrapper for elt, which removes the elt from the accessibility tree
80 function eltP(tag, content, className, style) {
81 var e = elt(tag, content, className, style);

Callers 15

eltPFunction · 0.85
codemirror.jsFile · 0.85
zeroWidthElementFunction · 0.85
hasBadZoomedRectsFunction · 0.85
buildTokenFunction · 0.85
ensureLineWrappedFunction · 0.85
updateLineBackgroundFunction · 0.85
updateLineGutterFunction · 0.85
insertLineWidgetsForFunction · 0.85
widgetHeightFunction · 0.85
paddingHFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected