ui: disable media autoplay

This commit is contained in:
undefined committed 2024-10-25 12:17:17 +08:00
1 parent 0bc1729147
commit 51f29ab52b
1 file changed
+2 -2
@@ -121,7 +121,7 @@ export const xss = new FilterXSS({
...commonRules.whiteList, ...commonRules.whiteList,
area: ['shape', 'coords', 'href', 'alt'], area: ['shape', 'coords', 'href', 'alt'],
article: [], article: [],
audio: ['autoplay', 'controls', 'loop', 'preload', 'src'], audio: ['controls', 'loop', 'preload', 'src'],
col: ['align', 'valign', 'span', 'width'], col: ['align', 'valign', 'span', 'width'],
colgroup: ['align', 'valign', 'span', 'width'], colgroup: ['align', 'valign', 'span', 'width'],
dd: [], dd: [],
@@ -146,7 +146,7 @@ export const xss = new FilterXSS({
thead: ['align', 'valign'], thead: ['align', 'valign'],
tr: ['rowspan', 'align', 'valign'], tr: ['rowspan', 'align', 'valign'],
ul: [], ul: [],
video: ['autoplay', 'controls', 'loop', 'preload', 'src', 'height', 'width'], video: ['controls', 'loop', 'preload', 'src', 'height', 'width'],
}, },
css: cssFilterOptions, css: cssFilterOptions,
safeAttrValue(tag, name, value) { safeAttrValue(tag, name, value) {