Loading core/lib/Drupal/Component/Utility/Xss.php +1 −0 Original line number Diff line number Diff line Loading @@ -238,6 +238,7 @@ protected static function attributes($attributes) { 'rel', 'property', 'class', 'datetime', ]); $working = $mode = 1; Loading core/tests/Drupal/Tests/Component/Utility/XssTest.php +18 −0 Original line number Diff line number Diff line Loading @@ -543,6 +543,24 @@ public function providerTestAttributes() { 'Image tag with malformed SRC', ['img'], ], [ '<del datetime="1789-08-22T12:30:00.1-04:00">deleted text</del>', '<del datetime="1789-08-22T12:30:00.1-04:00">deleted text</del>', 'Del with datetime attribute', ['del'], ], [ '<ins datetime="1986-01-28 11:38:00.010">inserted text</ins>', '<ins datetime="1986-01-28 11:38:00.010">inserted text</ins>', 'Ins with datetime attribute', ['ins'], ], [ '<time datetime="1978-11-19T05:00:00Z">#DBD</time>', '<time datetime="1978-11-19T05:00:00Z">#DBD</time>', 'Time with datetime attribute', ['time'], ], ]; } Loading Loading
core/lib/Drupal/Component/Utility/Xss.php +1 −0 Original line number Diff line number Diff line Loading @@ -238,6 +238,7 @@ protected static function attributes($attributes) { 'rel', 'property', 'class', 'datetime', ]); $working = $mode = 1; Loading
core/tests/Drupal/Tests/Component/Utility/XssTest.php +18 −0 Original line number Diff line number Diff line Loading @@ -543,6 +543,24 @@ public function providerTestAttributes() { 'Image tag with malformed SRC', ['img'], ], [ '<del datetime="1789-08-22T12:30:00.1-04:00">deleted text</del>', '<del datetime="1789-08-22T12:30:00.1-04:00">deleted text</del>', 'Del with datetime attribute', ['del'], ], [ '<ins datetime="1986-01-28 11:38:00.010">inserted text</ins>', '<ins datetime="1986-01-28 11:38:00.010">inserted text</ins>', 'Ins with datetime attribute', ['ins'], ], [ '<time datetime="1978-11-19T05:00:00Z">#DBD</time>', '<time datetime="1978-11-19T05:00:00Z">#DBD</time>', 'Time with datetime attribute', ['time'], ], ]; } Loading