Particularly,
function GeoBox_Init($content) {
$content.find( 'div.img_toogle' ).each( function ( i, Container ) {
Container.id = 'img_toogle_' + i;
var Boxes = $( Container ).find( '.geobox' );
if (Boxes.length < 2) {
return;
}
var ToggleLinksDiv = document.createElement('ul');
ToggleLinksDiv.id = 'geoboxToggleLinks_' + i;
Boxes.each( function ( a, ThisBox ) {
ThisBox.id = 'geobox_' + i + '_' + a;
var ThisAlt;
var ThisImg = ThisBox.getElementsByTagName('img')[0];
if (ThisImg) {
ThisAlt = ThisImg.alt;
}
if (!ThisAlt) {
ThisAlt = 'erreur : description non trouvée';
}
var toggle = document.createElement('a');
toggle.id = 'geoboxToggle_' + i + '_' + a;
toggle.textContent = ThisAlt;
toggle.href = 'javascript:';
toggle.onclick = function (e) {
e.preventDefault();
GeoBox_Toggle(this);
};
var Li = document.createElement('li');
Li.appendChild(toggle);
ToggleLinksDiv.appendChild(Li);
if (a === (Boxes.length - 1)) {
toggle.style.color = '#888';
toggle.style.pointerEvents = 'none';
} else {
ThisBox.style.display = 'none';
}
} );
Container.appendChild(ToggleLinksDiv);
} );
}We could ask them not to do that, but this might not be the only thing relying on the alt attribute so we should investigate further and probably resolve T63566