Steve Faulkner, Tue, 3 May 2011 14:33:58 +0100: > hi leif, > >>However, as sole content inside a link, it should probably be invalid > to use role=presentation. > > my understanding is that it is invalid in HTML5 > http://dev.w3.org/html5/spec/embedded-content-1.html#a-link-or-button-containing-nothing-but-the-image That text doesn't speak about @role=presentation. It only speaks about @alt. Thus, per HTML5, this could be valid: <a href="green.html"><img role=presentation src="green.jpeg" alt="Green"></a> That section should be improved by adding that such IMGs are restricted from having role=presentation. The WAI-ARIA weak table makes no restrictions on the role of an IMG whose @alt is non-empty. [1] Thus it is fully valid to set an img with non-empty alt to role=presentation. I agree with that table on that point, even if it perhaps only catches an edge use case. But for IMGs that (for AT) act as links or buttons, I see no use case for permitting role=presentation. [1] http://dev.w3.org/html5/spec/content-models#table-aria-weak -- Leif H SilliReceived on Tuesday, 3 May 2011 14:32:50 UTC
This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:55:55 UTC