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)); }