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

Nested anchor tags in java.lang.module

XMLWordPrintable

    • b18
    • Not verified

      tidy reports the following:

      build/linux-x86_64-server-release/images/docs/./api/java.base/java/lang/module/package-summary.html:99:6: Warning: missing </a> before <a>
      build/linux-x86_64-server-release/images/docs/./api/java.base/java/lang/module/package-summary.html:99:95: Warning: discarding unexpected </a>

      The HTML shows nested <a> tags:
       <h1><a id="resolution"><a id="ModuleResolution" class="searchTagResult">Module Resolution</a></a></h1>

      This is causes by the following
      src/java.base/share/classes/java/lang/module/package-info.java:37

       * <h1><a id="resolution">{@index "Module Resolution"}</a></h1>

      Since {@index} expands to an <a> tag, it wo0uld be better to rewrite this as
      <h1><a id="resolution"></a>{@index "Module Resolution"}</h1>

      Separately, nearby, tidy also reports:

      build/linux-x86_64-server-release/images/docs/./api/java.base/java/lang/String.html:3593:2: Warning: trimming empty <p>

      caused by the excess <p> on String.java:2894

           * If {@code n == 0} then the line remains unchanged. However, line
           * terminators are still normalized.
           * <p>

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

              Created:
              Updated:
              Resolved: