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

Eliminate whitespace comments from generated pages

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 15
    • 17
    • tools
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: