[Bug 10480] add role="presentation" on the ASCII fish image

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


Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |a11y
                 CC|                            |xn--mlform-iua@xn--mlform-i
                   |                            |ua.no
         Depends on|                            |10483, 10484




--- Comment #1 from Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>  2010-08-29 01:13:42 ---
According to bug 10483, it should not be necessary  to  use aria-labelledby on
the <figure> in this example. (But of course using aria-labelledby like you
did, should be both permitted and best practise to do so.) The spec should make
it clear that aria-labelledby is a best practice measure.

In a summary, I suggest to make the example like this, to make it clear that
HTML5 supporting user agents do not need more than this — :

<figure role="img" >
 <pre role="presentation" >
 o           .'`/
     '      /  (
   O    .-'` ` `'-._      .')
      _/ (o)        '.  .' /
      )       )))     ><  <
      `\  |_\      _.'  '. \
        '-._  _ .-'       '.)
    jgs     `\__\
 </pre>
 <figcaption>
  Joan G. Stark, "<cite>fish</cite>".
  October 1997. ASCII on electrons. 28×8.
 </figcaption> 
</figure>

The <figcaption> will automatically get role="heading", and will be considered
heading of the <figure>.

Eventually, you could use the occasation to show how simple it can be done when
using <figure>, and how much more work one must do when using <div> as the
contianer. E.g .when using <div>; then it is a greater need to use
aria-labelledby, since a <div> element does not have any default
heading/caption element.

-- 
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 Sunday, 29 August 2010 01:13:45 UTC