anchor in the URL does not jump because page has text field focus by javascript

RESOLVED INCOMPLETE

Status

()

Firefox
General
RESOLVED INCOMPLETE
9 years ago
8 years ago

People

(Reporter: Nizzy, Unassigned)

Tracking

3.5 Branch
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [CLOSEME 2011-2-25])

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5


sample URL: http://site.com/index.html#today

call this onload:
document.forms['sForm'].query.focus();

<form name="sForm">
<input type="text" name="query">
</fomr>

<br>create a large height here<br>

Now, our #today will not jump here becuase focus takes over the anchor.
<a name="today">Today's news</a>


Reproducible: Always

Actual Results:  
Anchor doesn't jump when there is a form field focus

Expected Results:  
I am not sure which one has the priority but IE ignores the focus when there is anchor in the url.
(Reporter)

Updated

9 years ago
Version: unspecified → 3.5 Branch
Reporter, are you still seeing this issue with Firefox 3.6.13 or later in safe mode or a fresh profile? If not, please close. These links can help you in your testing.
http://support.mozilla.com/kb/Safe+Mode
http://support.mozilla.com/kb/Managing+profiles
Whiteboard: [CLOSEME 2011-2-25]
(Reporter)

Comment 2

8 years ago
yes, it still happens. Did you try this?

create a text field at the of page and set a focus with javascript.
then create anchor name below this field at least 2 scrolls. then append the #anchor name to the url, hit enter...you will see.
This bug has had the CLOSEME tag for several weeks and the date in the tag is
far gone. If the reporter can still see this issue, Please retest with Firefox
3.6.x or later and a new profile
(http://support.mozilla.com/kb/Managing+profiles). Then please remove the
closeme tag in the whiteboard, mark the bug against the proper version and
comment on the bug.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.