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

Bad placement of anchor relative to header

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 13
    • 13
    • tools

        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.

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

                Created:
                Updated:
                Resolved: