From d9a82e6b9e92276122c75843183d3e42f3e17559 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 17 Oct 2024 09:00:08 +0200 Subject: Use HTML5 hidden (#6910) https://html.spec.whatwg.org/multipage/interaction.html#the-hidden-attribute Remove remains of `aria-hidden` mostly not used anymore in our logic. fix https://github.com/FreshRSS/FreshRSS/issues/6909 --- p/scripts/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'p/scripts') diff --git a/p/scripts/main.js b/p/scripts/main.js index e11c35205..9e243a519 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -1779,7 +1779,7 @@ function refreshUnreads() { if ((incUnreadsFeed(null, feed_id, nbUnreads - feed_unreads) || isAll) && // Update of current view? (nbUnreads - feed_unreads > 0)) { const newArticle = document.getElementById('new-article'); - newArticle.setAttribute('aria-hidden', 'false'); + newArticle.removeAttribute('hidden'); newArticle.style.display = 'block'; new_articles = true; } -- cgit v1.2.3