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

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

From: Jonathan Avila <jon.avila@ssbbartgroup.com>
Date: Wed, 10 Apr 2013 20:43:21 -0400
Message-Id: <0034001A-5072-44B8-94A5-BABF42527CDA@ssbbartgroup.com>
Cc: "<w3c-wai-ig@w3.org>" <w3c-wai-ig@w3.org>
To: Rabab Gomaa <Rabab.Gomaa@inspection.gc.ca>
Did you define the doctyoe as HTML indicating HTML5?  Those sound like a doctyoe declaration issue. 


On Apr 10, 2013, at 7:58 PM, "Rabab Gomaa" <Rabab.Gomaa@inspection.gc.ca> wrote:

> Hello,
> 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
> 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 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>
> </figure>
> -- 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,
> Rabab

Received on Thursday, 11 April 2013 00:43:53 UTC

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