Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8223364

Bad placement of anchor relative to header

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 13
    • Fix Version/s: 13
    • Component/s: tools

      Backports

        Description

        The attached screenshot shows a fragment of generated HTML, showing that <a id="..."> appears after <h?>.

        This may cause incorrect scrolling such that the text following the <a> element is at the top of the screen, and the <h?> element just out of view "above" the top of the screen.

        Ideally, the id would be on the <h?> element, but that has other issues ... see JDK-8220002. In the meantime, the <a id="..."> should either appear before or within the <h?> element, for correct scrolling.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  hannesw Hannes Wallnoefer
                  Reporter:
                  jjg Jonathan Gibbons
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: