Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Themes/default/scripts/topic.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,12 @@ IconList.prototype.onIconsReceived = function (oXMLDoc)

const img = document.createElement('img');
img.src = icon.getAttribute('url');
img.alt = icon.getAttribute('name');
img.title = icon.firstChild ? icon.firstChild.nodeValue : '';
/*
* The icon's name is its text, not an attribute - there has never been
* a name attribute on these. Asking for one gave every icon in the
* picker alt="null".
*/
img.alt = img.title = icon.firstChild ? icon.firstChild.nodeValue : '';
img.style.verticalAlign = 'middle';

span.appendChild(img);
Expand Down