Open
Bug 1381333
Opened 7 years ago
Updated 7 years ago
javascript messes up anchor
Categories
(Bugzilla :: Bugzilla-General, defect)
Tracking
()
NEW
People
(Reporter: jidanni, Unassigned)
References
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 Build ID: 20170616223046 Steps to reproduce: Visited https://bugzilla.mozilla.org/page.cgi?id=quicksearch.html#shortcuts in my browser. Actual results: Ended up at the top of the page. Expected results: Ended up at the #shortcuts anchor. If I turn off javascript in my browser, I end up at the right anchor. https://bugzilla.gnome.org/show_bug.cgi?id=784930
Comment 1•7 years ago
|
||
In Bug 958825, the upstream Bugzilla has been updated to use HTML5 `autofocus` attribute instead of JavaScript `focus()`, so the issue is reproducible even with JavaScript disabled. My recommendation is completely removing the autofocus functionality on this page.
See Also: → 958825
Comment 2•7 years ago
|
||
Basically autofocus should be avoided unless the page's major goal is search (e.g. Google homepage) or sign-in. This is the QuickSearch *help* page so it's not applicable.
You need to log in
before you can comment on or make changes to this bug.
Description
•