Closed Bug 63227 Opened 25 years ago Closed 1 year ago

TAB into input TEXT does not keep object scope

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P3)

defect

Tracking

()

RESOLVED INVALID
Future

People

(Reporter: raz, Unassigned)

Details

(Keywords: testcase, Whiteboard: domcore-bugbash-triaged)

Attachments

(1 file)

I am a software developer with sprint. I have a html form which, unless the user selects 'other' from a select list, the value of a text field should be read only. The way I have done this is to bind the onFocus of the text field to a function which checks for this.. if it is not to be modified.. it calls the blur method. This works fine for mouse click focus. Tab focus on the other hand does not call the onFocus event. This is on the 0.6 milestone release. Wayne
Browser, not engine ---> Event Handling Wayne, would you be able to attach a reduced testcase to this bug? (See "create a new attachment" above). Or is there a URL we can go to in order to reproduce this? Thanks -
Assignee: rogerl → joki
Component: Javascript Engine → Event Handling
QA Contact: pschwartau → lorca
I have changed the summary to better describe the issue. I will next attach a test case which demonstrates the problem at hand. -Wayne
Summary: TAB into input TEXT does not trip onFocus method → TAB into input TEXT does not keep object scope
I can reproduce with the testcase. The following is from the testcase : blur() doesn't work when the text area is accessed with a tab, self.blur() works when the text area is accessed with a tab, both work when the text area is accessed with a mouse click.
VERIFIED Platform:PC OS: Linux 2.2.16 Mozilla: 2000122808 M18 Trunk Marking NEW.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
Priority: -- → P3
Target Milestone: --- → mozilla1.0
Clearing milestone.
Target Milestone: mozilla1.0 → ---
Confirming on Mac OS 01-04-08. Just for reference, if you click in the top field one, you can tab into top field two and type something. In the bottom set, you can click in field one and tab into fiedl two, but no typing is allowed. Changing Plat/OS to ALL/ALL.
OS: Linux → All
Hardware: PC → All
Might not be to hard. Might be really hard. I'll have to see how easily we can get to the object info there. I'll try it soon either way.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.1
Reassigning QA Contact for all open and unverified bugs previously under Lorca's care to Gerardo as per phone conversation this morning.
QA Contact: lorca → gerardok
Pushing out one milestone. Joki has too much to do.
Target Milestone: mozilla0.9.1 → mozilla0.9.2
QA contact updated
QA Contact: gerardok → madhur
Moving lower priority bugs out of .9.2 milestone.
Target Milestone: mozilla0.9.2 → mozilla0.9.3
Doesn't look like this is getting fixed before the freeze tomorrow night. Pushing out a milestone. Please correct if I'm mistaken.
Target Milestone: mozilla0.9.3 → mozilla0.9.4
->0.9.5
Target Milestone: mozilla0.9.4 → mozilla0.9.5
Moving to 0.9.6
Target Milestone: mozilla0.9.5 → mozilla0.9.6
onfocus=blur() is not a good way to make a text field read-only, for two reasons: 1. Read-only fields are normally focusable with Tab, allowing the user to copy information out of the field. 2. If a user tabs into the field, focus will be lost. Once the user realizes that focus was lost, he will have to tab from the beginning of the page. (Many advanced users use tab to get to the next form field, and blind users rely on that method because they can't use pointing devices effectively.) Instead of using javascript event tricks, you should make the field disabled (unfocusable and gray) or read-only (focusable but uneditable, and not visually distinct). I think disabled is more appropriate for this situation. (Or, if you really want to avoid confusing the user, you could just put the text "If other:" before the text field.)
0.9.6 has passed, moving to 0.9.7. Load balancing 0.9.7 list shortly
Target Milestone: mozilla0.9.6 → mozilla0.9.7
Moving bugs from 0.9.7 for triaging in 0.9.8
Target Milestone: mozilla0.9.7 → mozilla0.9.8
Target Milestone: mozilla0.9.8 → mozilla0.9.9
Moving to 1.1. Note, recheck for validity, has not been checked in some time.
Target Milestone: mozilla0.9.9 → mozilla1.1
QA Contact: madhur → rakeshmishra
QA Contact: rakeshmishra → trix
.
Assignee: joki → saari
Status: ASSIGNED → NEW
QA Contact: trix → ian
retargeting
Target Milestone: mozilla1.1alpha → Future
Assignee: saari → nobody
QA Contact: ian → events
Component: Event Handling → User events and focus handling
Severity: normal → S3
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
Whiteboard: domcore-bugbash-triaged
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: