1

Topic: Using htmLawed to encourage accessibility

In discussing the use of htmLawed with Drupal here:
  http://groups.drupal.org/node/18563#comment-65133

We had concerns about the approach of using the file name in place of the alt tag for images.  We do realize that this is just an option, but doesn't do much for screen readers. 

If the point of checking for alt tags is to make a website more accessible than there needs to be a bigger human element and someone would need to be prompted to add textual meaning to a visual image. 

Not sure how this might be possible through this filter, but wanted to pose it as a problem.

2

Re: Using htmLawed to encourage accessibility

It is possible to make htmLawed use a custom function to address this issue. For that the configuration parameter 'hook_tag' needs to be set [e.g., through the appropriate form-field when using the htmLawed Drupal module]. See this post for an example.

The function can be made to transform 'alt' values using any logic. Probably the best way to get human correction would be to trigger some error notice.