From 43600b363ba415289aa2d12bcd16ca5d713276d2 Mon Sep 17 00:00:00 2001
From: Dmitry Artemov
+ +
+`; + +exports[`XSS checks with disabled markdown-it-attrs animate with values attribute and data: scheme 1`] = ` ++ +
+`; + exports[`XSS checks with disabled markdown-it-attrs body image 1`] = `""`; exports[`XSS checks with disabled markdown-it-attrs body tag 1`] = `""`; @@ -585,6 +619,40 @@ exports[`XSS checks with enabled markdown-it-attrs You can EMBED SVG which can c `; +exports[`XSS checks with enabled markdown-it-attrs animate with values attribute 1`] = ` ++ +
+`; + +exports[`XSS checks with enabled markdown-it-attrs animate with values attribute and data: scheme 1`] = ` ++ +
+`; + exports[`XSS checks with enabled markdown-it-attrs body image 1`] = `""`; exports[`XSS checks with enabled markdown-it-attrs body tag 1`] = `""`; diff --git a/test/xss.test.ts b/test/xss.test.ts index e6219b4f..a8730978 100644 --- a/test/xss.test.ts +++ b/test/xss.test.ts @@ -167,6 +167,14 @@ const ckecks = [ 'href animate from', ``, ], + [ + 'animate with values attribute', + ``, + ], + [ + 'animate with values attribute and data: scheme', + ``, + ], ]; describe.each([