W3C home > Mailing lists > Public > public-html-a11y@w3.org > October 2011

[Bug 13902] Have more details about the format of accessKeyLabel, like by giving examples. We don't want one browser to format it like "Alt+L" and another "alt-l".

From: <bugzilla@jessica.w3.org>
Date: Mon, 24 Oct 2011 14:46:52 +0000
To: public-html-a11y@w3.org
Message-Id: <E1RILng-0007zQ-K3@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13902

--- Comment #2 from Aryeh Gregor <ayg@aryeh.name> 2011-10-24 14:46:51 UTC ---
Are there really platform conventions for formatting accesskey labels?  Anyway,
we don't want it to vary by platform because then authors will test on their
favorite OS and do feature detection like this:

  button.accessKey = "A";
  if (!/A$/.test(button.accessKeyLabel)) {
    // Accesskey didn't stick, it must have been taken
    // by another element or something.  Do some fallback.
  }

and it will fail if one browser uses uppercase and one uses lowercase.  Or
whatever.  No, maybe authors shouldn't be using accessKeyLabel like this, but
if there's one thing we've learned in web standards over the last ten years,
it's that authors will rely on every little detail somehow and browsers need to
match exactly.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Monday, 24 October 2011 14:46:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 04:42:47 GMT