Closed Bug 300173 Opened 19 years ago Closed 19 years ago

Improper focus handling when working with JS events such as onchange etc.

Categories

(Camino Graveyard :: HTML Form Controls, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 294882

People

(Reporter: justin, Assigned: mikepinkerton)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.8) Gecko/20050427 Camino/0.8.4
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.8) Gecko/20050427 Camino/0.8.4

When using an HTML <select> that contains a list of inpage bookmarks and an
onchange event handler for that select element, the page will flicker as the
page location is changed to the bookmark's location in the page but then snapped
back to the location where the original <select> is located and orienting the
page so that said <select> is at the very top of the window.

This appears to be because after focus never fully leaves the <select> control
as the page location is changed.

Reproducible: Always

Steps to Reproduce:
Create a select such as the following

    <select onChange='window.location=this.value;'>
      <option value=''>Other surnames</option>
      <option value='#my_bookmark'>B</option>
    </select>

More than a screen's height away (roughly 100 lines depending on screen
resolution) write  

<a name='my_bookmark'>howdy!</a>


Actual Results:  
As described in the details of the bug.

Expected Results:  
Window location should be changed to the place where <a
name='my_bookmark'>howdy!</a> occurs in the text.

No work around known.

*** This bug has been marked as a duplicate of 294882 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: