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

Javadoc generates invalid and unnecessary HTML NOSCRIPT

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 7
    • 5.0
    • tools



      Name: rmT116609 Date: 08/17/2004


      FULL PRODUCT VERSION :
      java version "1.5.0-beta2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b51)
      Java HotSpot(TM) Client VM (build 1.5.0-beta2-b51, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Linux stallion.elharo.com 2.4.20-28.8 #1 Thu Dec 18 12:25:00 EST 2003 i686 athlon i386 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      Javdoc includes an unecessary and invalid NOSCRIPT tag in the head of the index.html file. This unnecessarily increases the size of the file, and throws off some tools that don't expect to see it there.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      View source on http://java.sun.com/j2se/1.5.0/docs/api/ or any other main JavaDoc page generated by the 1.5 javadoc. You will see this head:

      <HEAD>
      <!-- Generated by javadoc on Thu May 13 06:11:07 PDT 2004-->
      <TITLE>
      Java 2 Platform SE v1.5.0
      </TITLE>
      <SCRIPT type="text/javascript">
          targetPage = "" + window.location.search;
          if (targetPage != "" && targetPage != "undefined")
             targetPage = targetPage.substring(1);
          function loadFrames() {
              if (targetPage != "" && targetPage != "undefined")
                   top.classFrame.location = top.targetPage;
          }
      </SCRIPT>
      <NOSCRIPT>
      </NOSCRIPT>
      </HEAD>

      The NOSCRIPT element is unnecessary and invalid. HTML 4.0 does not allow NOSCRIPT in the HEAD, only the BODY.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      There should not be a NOSCRIPT element
      ACTUAL -
      There is a NOSCRIPT element

      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Incident Review ID: 297364)
      ======================================================================

            bpatel Bhavesh Patel (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: