MCPcopy Index your code
hub / github.com/microsoft/SandDance / domCreate

Function domCreate

docs/app/js/sanddance-app.js:123200–123203  ·  view source on GitHub ↗
(doc, tag, ns)

Source from the content-addressed store, hash-verified

123198}
123199// create a new DOM element
123200function domCreate(doc, tag, ns) {
123201 if (!doc && typeof document !== "undefined" && document.createElement) doc = document;
123202 return doc ? ns ? doc.createElementNS(ns, tag) : doc.createElement(tag) : null;
123203} // find first child element with matching tag
123204function domFind(el, tag) {
123205 tag = tag.toLowerCase();
123206 var nodes = el.childNodes, i = 0, n = nodes.length;

Callers 4

domChildFunction · 0.70
handleHrefFunction · 0.70
bindFunction · 0.70
textFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected