Mercurial > hg > isophonics-drupal-site
comparison core/tests/Drupal/Tests/Component/Utility/XssTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
501 return [ | 501 return [ |
502 [ | 502 [ |
503 '<img src="http://example.com/foo.jpg" title="Example: title" alt="Example: alt">', | 503 '<img src="http://example.com/foo.jpg" title="Example: title" alt="Example: alt">', |
504 '<img src="http://example.com/foo.jpg" title="Example: title" alt="Example: alt">', | 504 '<img src="http://example.com/foo.jpg" title="Example: title" alt="Example: alt">', |
505 'Image tag with alt and title attribute', | 505 'Image tag with alt and title attribute', |
506 ['img'] | 506 ['img'], |
507 ], | 507 ], |
508 [ | 508 [ |
509 '<a href="https://www.drupal.org/" rel="dc:publisher">Drupal</a>', | 509 '<a href="https://www.drupal.org/" rel="dc:publisher">Drupal</a>', |
510 '<a href="https://www.drupal.org/" rel="dc:publisher">Drupal</a>', | 510 '<a href="https://www.drupal.org/" rel="dc:publisher">Drupal</a>', |
511 'Link tag with rel attribute', | 511 'Link tag with rel attribute', |
512 ['a'] | 512 ['a'], |
513 ], | 513 ], |
514 [ | 514 [ |
515 '<span property="dc:subject">Drupal 8: The best release ever.</span>', | 515 '<span property="dc:subject">Drupal 8: The best release ever.</span>', |
516 '<span property="dc:subject">Drupal 8: The best release ever.</span>', | 516 '<span property="dc:subject">Drupal 8: The best release ever.</span>', |
517 'Span tag with property attribute', | 517 'Span tag with property attribute', |
518 ['span'] | 518 ['span'], |
519 ], | 519 ], |
520 [ | 520 [ |
521 '<img src="http://example.com/foo.jpg" data-caption="Drupal 8: The best release ever.">', | 521 '<img src="http://example.com/foo.jpg" data-caption="Drupal 8: The best release ever.">', |
522 '<img src="http://example.com/foo.jpg" data-caption="Drupal 8: The best release ever.">', | 522 '<img src="http://example.com/foo.jpg" data-caption="Drupal 8: The best release ever.">', |
523 'Image tag with data attribute', | 523 'Image tag with data attribute', |
524 ['img'] | 524 ['img'], |
525 ], | 525 ], |
526 [ | 526 [ |
527 '<a data-a2a-url="foo"></a>', | 527 '<a data-a2a-url="foo"></a>', |
528 '<a data-a2a-url="foo"></a>', | 528 '<a data-a2a-url="foo"></a>', |
529 'Link tag with numeric data attribute', | 529 'Link tag with numeric data attribute', |
530 ['a'] | 530 ['a'], |
531 ], | 531 ], |
532 ]; | 532 ]; |
533 } | 533 } |
534 | 534 |
535 /** | 535 /** |