diff --git a/VERSIONS_HOTLINE/136213 b/VERSIONS_HOTLINE/136213 new file mode 100644 index 0000000000000000000000000000000000000000..a44eb7b04082cee46ca6b3f45269371a6d316350 --- /dev/null +++ b/VERSIONS_HOTLINE/136213 @@ -0,0 +1 @@ + - ticket #136213 : Affichage : correction de la fermeture de balise iframe \ No newline at end of file diff --git a/library/Class/Cookies/Base.php b/library/Class/Cookies/Base.php index 767df6571a59b0bc40c59290533a77116c2021dd..46be10e670a179a58409d8ae0b5b99c822b82a77 100644 --- a/library/Class/Cookies/Base.php +++ b/library/Class/Cookies/Base.php @@ -92,7 +92,7 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> public function getPlayer($name, $url) { - return sprintf('<iframe src="%s" crossorigin=1 allowfullscreen=1 allow= "accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" class ="embed-responsive-item"/>', $url); + return sprintf('<iframe src="%s" crossorigin=1 allowfullscreen=1 allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" class="embed-responsive-item"> </iframe>', $url); } diff --git a/tests/scenarios/AuthorPage/AuthorPageTest.php b/tests/scenarios/AuthorPage/AuthorPageTest.php index 29bc6f455ad291bf295161f92364df3762b23976..d2e6f721a98b8993980f34ebaadd7ab4bd69b72d 100644 --- a/tests/scenarios/AuthorPage/AuthorPageTest.php +++ b/tests/scenarios/AuthorPage/AuthorPageTest.php @@ -698,6 +698,12 @@ class AuteurPageNoticeAjaxRenderYoutubeChannelTest extends AuthorPageTestCase { public function playlist441TitleShouldBePresent() { $this->assertXPathContentContains('//h3', 'David Guetta Playlist 441'); } + + + /** @test */ + public function iframesShouldBeExplicitlyClosed() { + $this->assertXPathCount('//iframe[child::text()=" "]', 3); + } } @@ -738,7 +744,6 @@ class AuteurPageNoticeAjaxRenderYoutubeChannelTarteAuCitronTest extends AuthorPa /** @test */ public function numberOfIframesShouldBeThree() { $this->assertXPathCount('//div[@class="youtube_player"]', 3); - }