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

Eliminate whitespace comments from generated pages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 15
    • tools
    • None

      Every generated page contains a fragment like this:

      <!-- ========= END OF TOP NAVBAR ========= -->
      <span class="skip-nav" id="skip.navbar.top">
      <!-- -->
      </span></nav>
      </header>

      The <span> element contains both a newline and a comment and needs neither. They should both be removed.

      The comment was originally used as a "workaround" to prevent the <span> element being dropped for being empty by the internal HTMLTree.add code. We now have better ways to manage that.

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: