if (!n.childNodes.length) {
return;
}
- for (var i = n.childNodes.length-1; i > -1 ; i++) {
+ for (var i = n.childNodes.length-1; i > -1 ; i--) {
this.cleanUpChild(n.childNodes[i]);
}
},
cleanUpChild : function (node)
{
- console.log(node);
+ //console.log(node);
if (node.nodeName == "#text") {
// clean up silly Windows -- stuff?
return;
}
- for (var i = node.attributes.length-1; i > -1 ; i++) {
+ for (var i = node.attributes.length-1; i > -1 ; i--) {
var a = node.attributes[i];
if (Roo.form.HtmlEditor.ablack.indexOf(a.name.toLowerCase()) > -1) {
node.removeAttribute(a.name);