[Bug 12590] @role=presentation for IMG should also require that @title is empty

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12590

--- Comment #1 from Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no> 2011-05-10 12:41:31 UTC ---
Note that the spec itself shows 2 code examples where an IMG element has an
empty @alt in combination with non-empty @title. 

For the first example, see section '4.8.1.1.6 A graphical representation of
some of the surrounding text':

]]
   In many cases, the image is actually just supplementary, and its presence
merely reinforces the surrounding text. In these cases, the alt attribute must
be present but its value must be the empty string. 


   A flowchart that repeats the previous paragraph in graphical form:

    [ code example: ]
      <p>The network passes data to the Tokenizer stage [snip] </p>
      <p><img src="[URL-snip:] parsing-model-overview" alt=""></p>

   In these cases, it would be wrong to include alternative text that consists
of just a caption. If a caption is to be included, then either the title
attribute can be used, or the figure and figcaption elements can be used. In
the latter case, the image would in fact be a phrase or paragraph with an
alternative graphical representation, and would thus require alternative text.

    <!-- Using the title="" attribute -->
    [ code example: ]
      <p>The network passes data to the Tokenizer stage [snip] </p>
      <p><img src="[URL-snip:] parsing-model-overview" alt=""
                title="Flowchart representation of the parsing model."></p>

[[
http://dev.w3.org/html5/spec/embedded-content-1#a-graphical-representation-of-some-of-the-surrounding-text


For the second example, see directly under '4.8.1 The img element', where we
find this example: 

]]  

  <aside><img src="fluffy.jpg" alt="" title="Fluffy"></aside> 

[[http://dev.w3.org/html5/spec/embedded-content-1#the-img-element

Note as well, that according to the Fangs, the JAWS emulator, then not only
VoiceOver, but JAWS too will treat those images as non-presentational. 
Fangs: http://sourceforge.net/projects/fangs

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 10 May 2011 12:41:34 UTC