Loading core/lib/Drupal/Component/Utility/Xss.php +1 −0 Original line number Diff line number Diff line Loading @@ -237,6 +237,7 @@ protected static function attributes($attributes) { 'alt', 'rel', 'property', 'class', ]); $working = $mode = 1; Loading core/tests/Drupal/Tests/Component/Utility/XssTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -504,8 +504,8 @@ public function testAttribute($value, $expected, $message, $allowed_tags = NULL) public function providerTestAttributes() { return [ [ '<img src="http://example.com/foo.jpg" title="Example: title" alt="Example: alt">', '<img src="http://example.com/foo.jpg" title="Example: title" alt="Example: alt">', '<img src="http://example.com/foo.jpg" title="Example: title" alt="Example: alt" class="md:block">', '<img src="http://example.com/foo.jpg" title="Example: title" alt="Example: alt" class="md:block">', 'Image tag with alt and title attribute', ['img'], ], Loading Loading
core/lib/Drupal/Component/Utility/Xss.php +1 −0 Original line number Diff line number Diff line Loading @@ -237,6 +237,7 @@ protected static function attributes($attributes) { 'alt', 'rel', 'property', 'class', ]); $working = $mode = 1; Loading
core/tests/Drupal/Tests/Component/Utility/XssTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -504,8 +504,8 @@ public function testAttribute($value, $expected, $message, $allowed_tags = NULL) public function providerTestAttributes() { return [ [ '<img src="http://example.com/foo.jpg" title="Example: title" alt="Example: alt">', '<img src="http://example.com/foo.jpg" title="Example: title" alt="Example: alt">', '<img src="http://example.com/foo.jpg" title="Example: title" alt="Example: alt" class="md:block">', '<img src="http://example.com/foo.jpg" title="Example: title" alt="Example: alt" class="md:block">', 'Image tag with alt and title attribute', ['img'], ], Loading