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

Run validator and eliminate the HTML errors

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • tools

      This is the validator for W3C

         http://validator.w3.org/

      This is a very good, reliable validator, but only does one page at
      a time and only does pages outside the firewall.

      I ran it on Applet.html (1.2Beta4) and it generated dozens of errors, including:

      Error at line 11:
         <body bgcolor="white">
                       there is no attribute "BGCOLOR" (explanation...)
                       You have used an attribute with an element that is defined
                       not to have that attribute. This is most commonly caused
                       by using Netscape-specific attributes like BGCOLOR and TEXT
                       for <BODY> without setting the document type appropriately,
          It goes on to have a reference to this web page:
          http://www.cs.duke.edu/~dsb/kgv-faq/sgml.html#doctype
          which infers to use this DOCTYPE for Netscape:
          "-//Netscape Comm. Corp.//DTD HTML//EN"

      Error at line 13:
         <a name="navbar_top"><!-- --></a>
                             document type does not allow element "A" here;
                             missing one of "P", "H1", "H2", "H3", "H4", "H5",
                             "H6", "PRE", "DIV", "ADDRESS" start-tag

      Error at line 19:
         ="../../overview-summary.html"><font color="white"><b>Overview</b></fo
                                         element "FONT" undefined (explanation...)

      It looks like just a few changes would make it validate properly.

            dkramersunw Douglas Kramer (Inactive)
            dkramersunw Douglas Kramer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: