W3C home > Mailing lists > Public > public-html-bugzilla@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-bugzilla@w3.org
Message-Id: <E1RILng-0007zW-Pt@jessica.w3.org>

--- 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 the QA contact for the bug.
Received on Monday, 24 October 2011 14:46:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:02:06 UTC