[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".

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 UTC