From: Alan Date: Thu, 7 Jul 2022 02:17:32 +0000 (+0800) Subject: Roo/htmleditor/FilterKeepChildren.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=ee18ec4bf24a8938c527aad27347602dabb52a8c Roo/htmleditor/FilterKeepChildren.js --- diff --git a/Roo/htmleditor/FilterKeepChildren.js b/Roo/htmleditor/FilterKeepChildren.js index 29b62ddd20..15b6476d54 100644 --- a/Roo/htmleditor/FilterKeepChildren.js +++ b/Roo/htmleditor/FilterKeepChildren.js @@ -32,11 +32,12 @@ Roo.extend(Roo.htmleditor.FilterKeepChildren, Roo.htmleditor.FilterBlack, //remove first.. for (var i = 0; i < ar.length; i++) { - if (ar[i].nodeType == 1) { + var e = ar[i]; + if (e.nodeType == 1) { if ( - (typeof(this.tag) == 'object' && this.tag.indexOf(ar[i].tagName) > -1) + (typeof(this.tag) == 'object' && this.tag.indexOf(e.tagName) > -1) || // array and it matches - (typeof(this.tag) == 'string' && this.tag == ar[i].tagName) + (typeof(this.tag) == 'string' && this.tag == e.tagName) || (e.tagName.indexOf(":") > -1 && typeof(this.tag) == 'object' && this.tag.indexOf(":") > -1) ||