- // if they mix thse, then it's going to be messy...
- var imgs = Array.from(d.getElementsByTagName('img'));
- imgs.concat(Array.from(document.getElementsByTagName('v:imagedata'))); // not sure if we need array from here.
+ // replace all v:imagedata - with img.
+ Roo.each(document.getElementsByTagName('v:imagedata'), function(node) {
+ node.parentNode.insertBefore(node, d.createElement('img'));
+ node.parentNode.removeChild(node);
+ });