From c4b51ef40bd724393721b60d2fe86c3b274c3621 Mon Sep 17 00:00:00 2001 From: Olivia206 <olivia.simonet@mmibordeaux.com> Date: Wed, 22 Jun 2022 16:09:57 +0200 Subject: [PATCH] Accessibility check for embed --- app/models/communication/block/template/embed.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/communication/block/template/embed.rb b/app/models/communication/block/template/embed.rb index 513987691..793075425 100644 --- a/app/models/communication/block/template/embed.rb +++ b/app/models/communication/block/template/embed.rb @@ -17,7 +17,7 @@ class Communication::Block::Template::Embed < Communication::Block::Template::Ba def iframe_without_title? return false unless has_iframe? - nokogiri.at('iframe').attr('title') + !nokogiri.at('iframe').attr('title') end def nokogiri -- GitLab