From 134477a840718b7c95fc6be9425fbb40a8881f84 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Thu, 10 Nov 2016 12:18:43 +0000 Subject: [PATCH] Setup htmlBlacklist and add rule for read-mode MW references Logically depends on If1b20fefe4b. Bug: T150418 Change-Id: I0e2249b64f3b452c0322e7a20515ee7b2b6c6f60 --- modules/ve-mw/init/ve.init.mw.Target.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/ve-mw/init/ve.init.mw.Target.js b/modules/ve-mw/init/ve.init.mw.Target.js index 7b11ebfe1d..631142ded9 100644 --- a/modules/ve-mw/init/ve.init.mw.Target.js +++ b/modules/ve-mw/init/ve.init.mw.Target.js @@ -102,6 +102,10 @@ ve.init.mw.Target.static.importRules = { // Nodes 'article', 'section', 'div', 'alienInline', 'alienBlock', 'comment' ], + htmlBlacklist: { + remove: [ 'sup.reference:not( [typeof] )' ], + unwrap: [ 'fieldset', 'legend' ] + }, removeOriginalDomElements: true, nodeSanitization: true },