Page 1 of 1
TinyMCE removes empty image alt attributes
Posted: Sun Feb 25, 2007 5:02 pm
by Jonny
The site I'm working on at present has many pages featuring images that have been given empty alt attributes i.e. alt="", allowing the pages to pass W3C verification (as specified here:
http://www.w3.org/QA/Tips/altAttribute)
Editing a page with TinyMCE automatically strips out the empty alts.
Anyone know how this function can be disabled?
Re: TinyMCE removes empty image alt attributes
Posted: Mon Feb 26, 2007 8:39 am
by cyberman
The solution is very easy - fill your alt attributes.
It's much more userfriendly, especially for handicapped users. W3C verification is only a guide for a user friendly layout. It makes not sense if you try to bypass this.
Re: TinyMCE removes empty image alt attributes
Posted: Mon Feb 26, 2007 9:38 am
by Jonny
Yes I agree, alt tags should always be filled out when a description of the image concerned will be of use to a visitor using a screen reader or other assistive technology, but the WCAG guidelines do not recommend this for decorative images such as bullets, rules etc. (Obviously, it's best to avoid using images of this kind in markup wherever possible.)
Re: TinyMCE removes empty image alt attributes
Posted: Mon Feb 26, 2007 10:06 am
by cyberman
The problem is discussed to in TinyMCE forum (without solution)
http://tinymce.moxiecode.com/punbb/view ... hp?id=6024
Maybe it helps to downgrade to TinyMCE 2.0.4 moduleĀ

...
Re: TinyMCE removes empty image alt attributes
Posted: Mon Feb 26, 2007 4:32 pm
by Jonny
Thanks for the link. I'll keep an eye on that thread.