[web-php] master: Add alt text to Elephants images (#1292)

From: Date: Fri, 11 Jul 2025 02:32:04 +0000
Subject: [web-php] master: Add alt text to Elephants images (#1292)
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-33006@lists.php.net to get a copy of this message
Author: Adam Cable (adamcable) Committer: GitHub (web-flow) Pusher: sy-records Date: 2025-07-11T10:18:56+08:00 Commit: https://github.com/php/web-php/commit/bb65d6c4f02eedc09922868b2015a6aad126cd2b Raw diff: https://github.com/php/web-php/commit/bb65d6c4f02eedc09922868b2015a6aad126cd2b.diff Add alt text to Elephants images (#1292) Changed paths: M js/common.js Diff: diff --git a/js/common.js b/js/common.js index a70f81236f..ee5f190c60 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 = $('<img>'); + image.attr('alt', ''); image.attr('src', 'data:image/jpeg;base64,' + photo.data); $(node).append(link.append(image)); }

« previous php.webmaster (#33006) next »