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)
Core
DOM: UI Events & Focus Handling
Tracking
()
RESOLVED
INVALID
Future
People
(Reporter: raz, Unassigned)
Details
(Keywords: testcase, Whiteboard: domcore-bugbash-triaged)
Attachments
(1 file)
|
1.39 KB,
text/html
|
Details |
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
Comment 1•25 years ago
|
||
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
| Reporter | ||
Comment 2•25 years ago
|
||
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
| Reporter | ||
Comment 3•25 years ago
|
||
Comment 4•25 years ago
|
||
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.
Comment 5•25 years ago
|
||
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
Comment 8•25 years ago
|
||
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
Comment 9•25 years ago
|
||
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
Comment 10•24 years ago
|
||
Pushing out one milestone. Joki has too much to do.
Target Milestone: mozilla0.9.1 → mozilla0.9.2
Comment 12•24 years ago
|
||
Moving lower priority bugs out of .9.2 milestone.
Target Milestone: mozilla0.9.2 → mozilla0.9.3
Comment 13•24 years ago
|
||
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
Comment 16•24 years ago
|
||
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.)
Comment 17•24 years ago
|
||
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
Comment 18•24 years ago
|
||
Moving bugs from 0.9.7 for triaging in 0.9.8
Target Milestone: mozilla0.9.7 → mozilla0.9.8
Updated•24 years ago
|
Target Milestone: mozilla0.9.8 → mozilla0.9.9
Comment 19•24 years ago
|
||
Moving to 1.1.
Note, recheck for validity, has not been checked in some time.
Target Milestone: mozilla0.9.9 → mozilla1.1
Updated•23 years ago
|
QA Contact: madhur → rakeshmishra
Updated•23 years ago
|
QA Contact: rakeshmishra → trix
Updated•16 years ago
|
Assignee: saari → nobody
QA Contact: ian → events
| Assignee | ||
Updated•7 years ago
|
Component: Event Handling → User events and focus handling
Updated•3 years ago
|
Severity: normal → S3
Updated•1 year ago
|
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.
Description
•