From ec42733225957cd9abdd2e3370dbc3b55b0ff626 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Tue, 11 Dec 2018 15:23:37 +0000 Subject: [PATCH] Rewrite DOM junk filter as array concatenation Avoids regressions like If399319b2675ac8c. Change-Id: I43851931e3b9ee461abd0cfce0627bfb6a2bd041 --- modules/ve-mw/init/ve.init.mw.Target.js | 28 ++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/modules/ve-mw/init/ve.init.mw.Target.js b/modules/ve-mw/init/ve.init.mw.Target.js index bc16e33876..d9dfa469a9 100644 --- a/modules/ve-mw/init/ve.init.mw.Target.js +++ b/modules/ve-mw/init/ve.init.mw.Target.js @@ -259,21 +259,21 @@ ve.init.mw.Target.prototype.getHtml = function ( newDoc, oldDoc ) { // Filter out junk that may have been added by browser plugins $( newDoc ) - .find( - 'script, ' + // T54884, T65229, T96533, T103430 - 'noscript, ' + // T144891 - 'object, ' + // T65229 - 'style:not( [ data-mw ] ), ' + // T55252, but allow