W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > April to June 2013

Validation errors in "Techniques for providing useful text alternatives" page

From: Rabab Gomaa <Rabab.Gomaa@inspection.gc.ca>
Date: Wed, 10 Apr 2013 19:58:01 -0400
Message-Id: <5165C448.1E64.00E0.1@inspection.gc.ca>
To: <w3c-wai-ig@w3.org>
I used some techniques from "Techniques for providing useful text alternatives" page however the W3C validation service shows the following errors: 
- Error 1: Attribute role not allowed on element figure at this point.
<figure role="group">
-- Role is a solution to provide a programmatically determinable relationship between the image and its description until: http://www.w3.org/TR/html-alt-techniques/#haee ( http://www.w3.org/TR/html-alt-techniques/ )
Also upon the page http://www.w3.org/TR/wai-aria/roles#group Authors SHOULD use a group to form logical collection of items in a widget ( http://www.w3.org/TR/wai-aria/terms#def_widget ) such as children in a tree widget forming a collection of siblings in a hierarchy, or a collection of items having the same container in a directory. 
Is role supported or not for the figure element?
- Error 2: Element p not allowed as child of element figure in this context. (Suppressing further errors from this subtree.)
<figure role="group">
<img src="webcam1.jpg" alt="Sopwith house weather cam.">
<figcaption>View from the top of Sopwith house </figcaption>
<p>This image is updated every hour.</p>
-- Sometimes there is a note <p> or table and it is not always usable to have them all with the image before or after the <figcaption> 
so what to do? A similar example exists on http://www.w3.org/TR/html-alt-techniques/#hbh 
Thank you,
Received on Wednesday, 10 April 2013 23:58:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:36:44 UTC