From 5a0a6425d4a5c6867566f5af0569a5e02fbe7de6 Mon Sep 17 00:00:00 2001 From: Adam Cable Date: Thu, 10 Jul 2025 08:44:33 +0100 Subject: [PATCH 1/2] Add alt text to Elephants images Fixing elements which do not have alt attributes --- js/common.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/common.js b/js/common.js index a70f81236f..0b9f9b13ba 100644 --- a/js/common.js +++ b/js/common.js @@ -426,6 +426,7 @@ $(document).ready(function () { link.attr('href', photo.url); link.attr('title', photo.title); image = $(''); + image.attr('alt', photo.title); image.attr('src', 'data:image/jpeg;base64,' + photo.data); $(node).append(link.append(image)); } From 0aa8a490a07f8651269eb5af4d2e4e9f7b197504 Mon Sep 17 00:00:00 2001 From: Adam Cable Date: Thu, 10 Jul 2025 09:38:42 +0100 Subject: [PATCH 2/2] Set alt to empty --- js/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/common.js b/js/common.js index 0b9f9b13ba..ee5f190c60 100644 --- a/js/common.js +++ b/js/common.js @@ -426,7 +426,7 @@ $(document).ready(function () { link.attr('href', photo.url); link.attr('title', photo.title); image = $(''); - image.attr('alt', photo.title); + image.attr('alt', ''); image.attr('src', 'data:image/jpeg;base64,' + photo.data); $(node).append(link.append(image)); }