From ef366b92b69cd8f7f86df98c3685ffeffc24dcad Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 7 Jan 2020 22:46:28 +0200 Subject: [PATCH] sanitizer.js: Add srcset in the allowed attributes (#29968) --- js/src/tools/sanitizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/tools/sanitizer.js b/js/src/tools/sanitizer.js index 797159bcc07e..0e83bde477eb 100644 --- a/js/src/tools/sanitizer.js +++ b/js/src/tools/sanitizer.js @@ -37,7 +37,7 @@ export const DefaultWhitelist = { h5: [], h6: [], i: [], - img: ['src', 'alt', 'title', 'width', 'height'], + img: ['src', 'srcset', 'alt', 'title', 'width', 'height'], li: [], ol: [], p: [],