[thelist] Is supressing the incorrect display of alt text in IE a good thing

Christian Heilmann codepo8 at gmail.com
Sun Jan 22 14:25:09 CST 2006

> in terms of accessibility?
> with something like:
> function clearAltText(){
> /*I don't want microsux internet exploder to display alt text as a tooltip*/
> if(document.all){
>  var arImg=document.getElementsByTagName("img");
>  var len=arImg.length;
>  for(var i=0; i<len; i++)
>     arImg[i].alt="";
> }
> }
> Or can it have some side-effects?
> My thoughts on it:
> http://www.volkanozcelik.com/cre8/blog/2006/01/prevent-ie-treating-alt-attribute-as.html

Well, it deletes all alternative text, and that is a bad thing... If a
crappy browser displays a non-visual attribute we shouldn't turn off
because of that reason. Visitors without Images but JavaScript turned
on will not get any alternatives...

Chris Heilmann
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
Binaries: http://www.onlinetools.org/

More information about the thelist mailing list