- From: Sina Bahram <sbahram@nc.rr.com>
- Date: Mon, 19 Mar 2012 10:48:58 -0400
- To: "'Victor Tsaran'" <vtsaran@yahoo-inc.com>, "'Aaron Leventhal - Code'" <aaronlevbugs@gmail.com>
- Cc: <wai-xtech@w3.org>
- Message-ID: <007a01cd05df$6b4a74e0$41df5ea0$@nc.rr.com>
At the risk of offering a simple +1, I also agree with this. the "old way" was far more concise and efficient. I've also noticed that it was far more comfortable for web developers I have spoken with when discussing accessibility with them. Take care, Sina Website: www.SinaBahram.com Twitter: @SinaBahram From: Victor Tsaran [mailto:vtsaran@yahoo-inc.com] Sent: Monday, March 19, 2012 1:23 AM To: Aaron Leventhal - Code Cc: wai-xtech@w3.org Subject: Re: Handling of landmark roles on native markup I am sure there were reasons as to why the newer implementation was devised, however, I did prefer the older version. In addition to Aaron's comments, I would also say that, IMHO, the older implementation provided a less cluttered mark-up. With the new implementation one has to place some roles onto an extra div in order for it to be exposed to certain accessibility APIs. For example, New way: <div role="main"> <table summary="list of messages"> ... </table> versus Old way: <table role="main" summary="list of messages"> ... </table> Thanks, Victor On Mar 16, 2012, at 11:24 AM, Aaron Leventhal - Code wrote: I recently discovered that Firefox and WebKit-based browsers handle landmarks differently. WebKit implements the current ARIA implementation guide at http://www.w3.org/TR/wai-aria-implementation/#mapping_role -- "For the standard role mechanism of the accessibility API, the user agent MUST use the first token in the sequence of tokens in the role <http://www.w3.org/TR/wai-aria-implementation/#def_attribute> attribute <http://www.w3.org/TR/wai-aria-implementation/#def_value> value which matches, on comparison, the name of any non-abstract WAI-ARIA role." Firefox/Gecko implements an older version of the implementation guide at http://www.w3.org/TR/2009/WD-wai-aria-implementation-20090224/#mapping_role "The first role token with a known mapping to accessibility APIs SHOULD be used when mapping to the accessibility API via the standard role mechanism of the accessibility API. Use the role table below and apply any special case rules that are specified." As I see it, there are two advantages to the older system: 1. The landmark role can complement native semantics without clobbering them, e.g. <input type="text" role="search"> <table role="complementary"> <ul role="navigation"> 2. It enables forward compatibility of ARIA-enabled content with future browsers and platforms, as fallback roles can be used. For example, <table role="calendar grid"> allows newer platforms who understand a "calendar" role to map directly to that, but previous versions which did not know about "calendar", would fall back on "grid", still a valid, usable role. I'd like to help sync the browser implementations on this issue. My (opinion) is that the older role processing is better for the reasons given above. I would love to hear other opinions. Thanks as always, Aaron
Received on Monday, 19 March 2012 14:49:31 UTC