MCPcopy Index your code
hub / github.com/mailru/FileAPI / abstractAltContent

Function abstractAltContent

flash/image/html-template/swfobject.js:383–403  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

381 }
382
383 function abstractAltContent(obj) {
384 var ac = createElement("div");
385 if (ua.win && ua.ie) {
386 ac.innerHTML = obj.innerHTML;
387 }
388 else {
389 var nestedObj = obj.getElementsByTagName(OBJECT)[0];
390 if (nestedObj) {
391 var c = nestedObj.childNodes;
392 if (c) {
393 var cl = c.length;
394 for (var i = 0; i < cl; i++) {
395 if (!(c[i].nodeType == 1 && c[i].nodeName == "PARAM") && !(c[i].nodeType == 8)) {
396 ac.appendChild(c[i].cloneNode(true));
397 }
398 }
399 }
400 }
401 }
402 return ac;
403 }
404
405 /* Cross-browser dynamic SWF creation
406 */

Callers 2

showExpressInstallFunction · 0.70
displayAltContentFunction · 0.70

Calls 1

createElementFunction · 0.70

Tested by

no test coverage detected