CFIMAGE WRITETOBROWSER no alt tag!

Just a quick post on using 'CFIMAGE' with the action 'WRITETOBROWSER'. I noticed something which is not documented in the livedocs. When using the above tag I viewed the sourced code it outputted to the browser and it gave a completely empty alt tag, not good for accessibility! So I looked in the livedocs to see it there was an attribute for missing 'alt', but nothing!

Just out of pure boredom I added alt="something" to the CFIMAGE tag and guess what? No errors, could it have worked? Yes it did! Infact any normal image attribute seemed to work on CFIMAGE such as border="0" etc.

OK, so this is weak attempt at a blog post but it has me thinking, do Adobe not document such things often or maybe just because its common sense. Well either way I like it when things just work.

TweetBacks
Comments
Ben Nadel's Gravatar That is an awesome little discovery! Nicely done.
# Posted By Ben Nadel | 10/06/09 20:55
 

About Me

Glyn Jackson, 28 years old, MD and senior developer of a development firm based in Staffordshire called Newebia Ltd. Academic background in BSc Information System & Internet Commerce. Online marketing expert (EE Ranked) and .NET developer. Has been developing with ColdFusion for 5 years and loves it. "I am not a veteran in ColdFusion but I do work on challenging projects which help me learn more about ColdFusion and if I can contribute to the community in anyway then, it's all good!"

Recommends

  • ColdFusion