Inconsistent handling of accesskey on checkbox and on checkbox label

RESOLVED WORKSFORME

Status

()

Toolkit
Form Manager
RESOLVED WORKSFORME
14 years ago
10 years ago

People

(Reporter: Robin Lionheart, Unassigned)

Tracking

({access, html4, testcase})

1.7 Branch
x86
Windows XP
access, html4, testcase
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

14 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

Accesskeys for checkbox <label>s are handled differently than accesskeys on
checkboxes <input>s.

In Mozilla 1.0.2—/Netscape 7.01—/Firefox:



Reproducible: Always

Steps to Reproduce:
Example:

	<label><input accesskey="C" type="checkbox">on the
<strong>C</strong>heckbox</label>

	<label accesskey="L"><input type="checkbox">on the <strong>L</strong>abel</label>

Actual Results:  
Accesskey C gives focus to first checkbox on the first invocation, toggles the
checkbox on the second and subsequent invocations. (The checkbox is toggled only
if it *was* in focus.)

Accesskey L gives focus to the second checkbox and activates it on the first
invocation. It does not toggle the checkbox on second and subsequent
invocations. (The checkbox is toggled only if it *was not* in focus.)

Expected Results:  
I would expect both to be handled as in Mozilla 0.6–1.0.1, always toggling the
associated checkbox.
(Reporter)

Updated

14 years ago
Blocks: 41368, 159199
(Reporter)

Comment 1

14 years ago
Created attachment 170803 [details]
Test file
(Reporter)

Updated

14 years ago
Alias: checkbox-accesskey
(Reporter)

Updated

14 years ago
No longer blocks: 159199

Updated

14 years ago
Keywords: access
(Reporter)

Updated

14 years ago
Component: General → Form Manager
Product: Mozilla Application Suite → Core
Version: unspecified → 1.7 Branch
(Reporter)

Updated

14 years ago
Blocks: 7954
Keywords: html4
(Reporter)

Updated

14 years ago
Keywords: testcase
(Reporter)

Comment 2

14 years ago
On further testing, Mozilla 1.8a2-1.8a5 always toggles checkboxes, like Mozilla
0.6-1.0.1.

Perhaps a fix has already been checked in for this bug?
WFM, Mozilla 2005-01-11-07 trunk Linux.

-> WORKSFORME
Alias: checkbox-accesskey
Status: NEW → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → WORKSFORME

Updated

10 years ago
Component: Form Manager → Form Manager
Product: Core → Toolkit
QA Contact: general → form.manager
Version: 1.7 Branch → 1.0 Branch
You need to log in before you can comment on or make changes to this bug.