JDK-6786682 : Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - HTML tag should have lang attribute.
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-12-18
  • Updated: 2014-05-05
  • Resolved: 2011-07-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b46Fixed
Related Reports
Relates :  
Description
This bug is to track specific issues specified in bug 6702376.

Licensee observes the HTML generated by the Javadoc tool does not meet the
requirements of the Web Content Accessibility Guidelines 2.0 standard:

   http://www.w3.org/TR/WCAG20/

Here are some accessibility problems believed to be found so far.  Note that
this is not an exhaustive list - there are likely to be more problems.

1. The value of the LANG attribute must be set to one of the ISO 639
   language codes.

Comments
SUGGESTED FIX Javadoc standard doclet should look for -locale command line oiption for a specified locale and display the locale language as the HTML lang attribute. By default the doclet will look up the JVM default locale and display the language for the defaulkt locale as the HTML page language attribute.
02-01-2009

EVALUATION The <HTML> tag for all pages generated by Javadoc to have lang attribute which specifies the language for the page.
02-01-2009