Unverified Commit b6217bd4 authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #3252587 by longwave, smustgrave, Chalk, borisson_, alexpott: Extend the...

Issue #3252587 by longwave, smustgrave, Chalk, borisson_, alexpott: Extend the $skip_protocol_filtering list of attributes to use Tailwind CSS classes with prefix ":"
parent 4411770d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -237,6 +237,7 @@ protected static function attributes($attributes) {
              'alt',
              'rel',
              'property',
              'class',
            ]);

            $working = $mode = 1;
+2 −2
Original line number Diff line number Diff line
@@ -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'],
      ],