Closed Bug 7134 Opened 26 years ago Closed 25 years ago

JS: blur() does not work.

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Windows 95
defect

Tracking

()

VERIFIED DUPLICATE of bug 13652

People

(Reporter: desale, Assigned: pollmann)

Details

(Keywords: testcase, Whiteboard: [TESTCASE] blur() does not seem to be implemented yet)

Attachments

(1 file)

JavaScript method blur() does not work if we try to blur some element using this method. Product: seamonkey [Apprunner/ Viewer] Build: 05-25-09. Steps to reproduce bug: 1] Please copy the code I'm providing. Save as HTML file and open this file in viewer as well as apprunner. 2] You'll see two text boxes. One "Testing Box1" and second "Testing Box2". 3] "Testing Box1" is getting focus using method focus() and immediately supposed to loose focus using method blur(). Expected Results: None of text boxes should have focus. We should not see any blinking curson in any of text boxes. Specifically "Testing Box1" should not show any cursor since we are taking away focus from this box using method blur(). Actual Results: "Testing Box1" shows blinking cursor. Conclusion: This means blur() method used in code is unable to blur "Testing Box1". CODE: <html> <head> <title>Test Page</title> </head> <body > <form name="workform"> Testing Text Box1:<INPUT TYPE=text name="testing1" size=15 > Testing Text Box2:<INPUT TYPE=text name="result" size=15> <SCRIPT LANGUAGE="JavaScript1.1"> document.workform.testing1.focus(); document.workform.testing1.blur(); </SCRIPT> </form> </body> </html> END OF CODE.
Assignee: vidur → pollmann
This one's for you, Eric. I'm guessing that the Blur() method for some of the form elements just isn't hooked up.
Summary: JavaScript method blur() does not work. → JS: blur() does not work.
Whiteboard: [TESTCASE] blur() does not seem to be implemented yet
here we go... Overview Description: blur() does not seem to be implemented yet. Specifically, if you set the onfocus parameter of a form text edit to "this.blur()", you can enter text nevertheless. Steps to reproduce: 1) load the attachment, 2) click into the text edit and type something Actual Results: you can type text into that text edit Expected Results: due to "this.blur()", the cursor should leave the text edit immediately, making it impossible to type text into it. Build Date & Platform: occurs on M7 and current daily build (Win32) does not occur on NN3+, IE4+
Target Milestone: M13 → M14
Triaged to M14
Bulk moving [testcase] code to new testcase keyword. Sorry for the spam!
Keywords: testcase
Setting Seviarity to Major.
Severity: normal → major
This is a subset of bug 13652, marking it a duplicate. I'll note on bug 13652 to look at the testcase here before closing that one out. *** This bug has been marked as a duplicate of 13652 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Verified duplicate of 13653 -DOM focus, blur, click and select methods don't work with GFX- Note has been added to 13653 to verify it with this testcase.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: