On Aug 16, 3:22 pm, LuKreme <[email protected]> wrote:
> On Aug 16, 2011, at 12:59, steveax <[email protected]> wrote:
>
> > While I know it's impossible to make authors supply good alternative
> > text, I think tools can nudge one way or another and I suspect the
> > current behavior will nudge in the wrong direction.
>
> Since an alt tag is REQUIRED it makes sense to supply one, else the code 
> BBEdit inserts for the image is syntactically invalid.

Not in HTML5, and in any case, inserting the filename is a
particularly bad choice. From the latest HTML5 draft [1]:

> 4.8.1.1.12 Guidance for markup generators
>
> Markup generators (such as WYSIWYG authoring tools) should, wherever
> possible, obtain alternative text from their users. However, it is
> recognized that in many cases, this will not be possible.
>
> For images that are the sole contents of links, markup generators should
> examine the link target to determine the title of the target, or the URL
> of the target, and use information obtained in this manner as the
> alternative text.
>
> As a last resort, implementors should either set the alt attribute to
> the empty string, under the assumption that the image is a purely
> decorative image that doesn't add any information but is still specific
> to the surrounding content, or omit the alt attribute altogether, under
> the assumption that the image is a key part of the content.
>
> Markup generators should generally avoid using the image's own file name
> as the alternative text. Similarly, markup generators should avoid
> generating alternative text from any content that will be equally
> available to presentation user agents (e.g. Web browsers).

Many authors are unfamiliar with the spec and best practices. Tool
defaults give implicit guidance.

-S

[1] http://dev.w3.org/html5/spec/Overview.html#guidance-for-markup-generators

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to