Closed Bug 128736 Opened 23 years ago Closed 22 years ago

controlElementID.focus() should be controlElement.focus()

Categories

(Core :: XUL, defect)

x86
Windows 98
defect
Not set
trivial

Tracking

()

VERIFIED DUPLICATE of bug 206055

People

(Reporter: neil, Assigned: hyatt)

References

()

Details

(Keywords: polish)

Attachments

(1 file)

Attached patch Proposed PatchSplinter Review
Keywords: patch, polish, review, ui
Should this go into 0.9.9? How exactly does the bug bite, and how likely is that reproduce-by case? Nit: someone (not Neil) mixed 'if (' and 'if(' styles -- the latter badly. What's more, there's no need to test controlElement if !controlElementID: var controlElementID = this.getAttribute('control'); if (controlElementID) { var controlElement = document.getElementById(controlElementID); if (controlElement) controlElementID.focus(); } /be
Blocks: 122050
Keywords: mozilla0.9.9
I suggested that Neil file this, but I didn't look at what code the bug is in. I think this code should just be removed (I thought I had removed it already, in fact.) Clicking on a control with a control association doesn't focus the associated control in Windows, so why should it in our app?
Blake, bonsai fingered you last time I looked :-) Perhaps this was added to correlate with the HTML <LABEL> element.
If this is just for focusing a textbox when a label is clicked, then yeah, let's remove this.
not an 0.9.9 blocker.
No longer blocks: 122050
*** Bug 201939 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of 206055 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
v
Status: RESOLVED → VERIFIED
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: