Closed Bug 567849 Opened 15 years ago Closed 9 years ago

Using an anchor with the literal text "#login" does not work

Categories

(Firefox :: General, defect)

3.6 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jas, Unassigned)

Details

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTB7.0 Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTB7.0 I had a web page with a link to an anchor on the same page that used the text "#login" for the source and "login" for the target. This link did not work. However it works fine in IE and Safari. So I decided that there must be something wrong with using the specific text "login" in FF. So I changed the link, and that fixed it. So I am reporting this as a possible bug in FF. Reproducible: Always Steps to Reproduce: 1.Create a link to an anchor on the same page, using "#login" and "login" for source and target. 2.Click on the link. 3.It does not work. Actual Results: Nothing appears to happen. It as if the link is not there. Expected Results: Page should be repositioned to the place of the target. Simple workaround - just don't use "login" as a link.
Do you also have an element with id="login" on the page which it is positioning to instead? Otherwise can you attach a testcase to this bug.
The source and target are on the same page. There was a href="#login" for the source and a name="login" for the target both on that same page. It works fine in other browsers. Just not Firefox. The workaround was to change "login" in both of the above to "how-login", and then it works fine.
Version: unspecified → 3.6 Branch
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0 I could not reproduce this issue in the current release of Firefox. This and considering the old age of this bug I'm closing it as WFM, Feel free to reopen it if the bug still persists.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.