W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > July to September 2008

Question on <pre> and <code> - violation of 1.3.1?

From: Andrew LaHart <andrew.lahart@us.ibm.com>
Date: Fri, 5 Sep 2008 09:56:12 -0400
To: WCAG <w3c-wai-gl@w3.org>
Cc: Brian Cragun <cragun@us.ibm.com>
Message-ID: <OF700E9AFA.3DADE33F-ON852574BB.004A60B6-852574BB.004C9250@us.ibm.com>


Good morning,
Is the use of <pre> and <code> to distinguish code samples a violation of
1.3.1 in WCAG 2? The argument can be made that information is conveyed by
variations in presentation of text.

For example, in the Techniques document, we use <code> inline in many
places without any other mechanism to determine that a code sample is
present.  Any of the techniques pages can be used as an example of this,
but here is one in particular that wraps the describedby property in <code>
tags:
http://www.w3.org/TR/2008/WD-WCAG20-TECHS-20080430/ARIA1.html

Screen reader users don't have access to this information, so should the
use of <pre> and <code> be cited as failures of G117 or H49?

Any thoughts from the group would be most appreciated.
Thank you!
Drew

Andrew LaHart
IBM Human Ability and Accessibility Center
www.ibm.com/able
Received on Friday, 5 September 2008 13:56:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:47:54 GMT