User:Booyabazooka/Anchors

From MozillaWiki
Jump to: navigation, search

Idea: Improved anchor support

Browsers have always have some small fundamental problems dealing with named anchors (<a name="foo">), and I believe that Firefox can easily address these.

Scrolling height

When one navigates to bar.htm#foo: If the foo anchor is near the bottom of the page, the browser window cannot scroll down far enough to display the anchor at the top of the visible window; therefore, it becomes impossible to discern the anchor's location (and, presumably, the intended user's focus on this location is lost). This can be solved by allowing the browsing window to scroll beyond the bottom of the document in these cases, such that the anchor is positioned correctly at the top of the viewing window.

Lost anchors

Anchors can be useful for creating links to a certain part of an document; but when the user does not know the anchor names, he cannot create such URIs without scanning through the document's source code to find them. This should not be necessary. Instead, it could be possible for the browser to indicate the locations and names of anchors. By a keyboard shortcut or menu option, anchored elements would be highlighted, and clicking them navigates to that anchor (adds #foo to the URL and scrolls down appropriately).