MCPcopy Create free account
hub / github.com/breck7/scroll / elt

Function elt

external/.scrollLibs.js:537–553  ·  view source on GitHub ↗
(tag, content, className, style)

Source from the content-addressed store, hash-verified

535 }
536
537 function elt(tag, content, className, style) {
538 var e = document.createElement(tag)
539 if (className) {
540 e.className = className
541 }
542 if (style) {
543 e.style.cssText = style
544 }
545 if (typeof content == "string") {
546 e.appendChild(document.createTextNode(content))
547 } else if (content) {
548 for (var i = 0; i < content.length; ++i) {
549 e.appendChild(content[i])
550 }
551 }
552 return e
553 }
554 // wrapper for elt, which removes the elt from the accessibility tree
555 function eltP(tag, content, className, style) {
556 var e = elt(tag, content, className, style)

Callers 15

eltPFunction · 0.85
DisplayFunction · 0.85
.scrollLibs.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

Calls

no outgoing calls

Tested by

no test coverage detected