-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
1.2.0
-
sparc
-
solaris_2.5
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.
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.
- duplicates
-
JDK-4186645 Invalid DTD generated in javadoc HTML output
-
- Resolved
-