From ee18ec4bf24a8938c527aad27347602dabb52a8c Mon Sep 17 00:00:00 2001 From: Alan Date: Thu, 7 Jul 2022 10:17:32 +0800 Subject: [PATCH] Roo/htmleditor/FilterKeepChildren.js --- Roo/htmleditor/FilterKeepChildren.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) || -- 2.39.2