1.1 --- a/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java Fri Aug 30 15:14:51 2013 -0700 1.2 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java Fri Aug 30 15:59:33 2013 -0700 1.3 @@ -502,16 +502,17 @@ 1.4 if (!configuration.nonavbar) { 1.5 String allClassesId = "allclasses_"; 1.6 HtmlTree navDiv = new HtmlTree(HtmlTag.DIV); 1.7 + Content skipNavLinks = configuration.getResource("doclet.Skip_navigation_links"); 1.8 if (header) { 1.9 body.addContent(HtmlConstants.START_OF_TOP_NAVBAR); 1.10 navDiv.addStyle(HtmlStyle.topNav); 1.11 allClassesId += "navbar_top"; 1.12 Content a = getMarkerAnchor("navbar_top"); 1.13 + //WCAG - Hyperlinks should contain text or an image with alt text - for AT tools 1.14 navDiv.addContent(a); 1.15 - Content skipLinkContent = getHyperLink(DocLink.fragment("skip-navbar_top"), 1.16 - HtmlTree.EMPTY, 1.17 - configuration.getText("doclet.Skip_navigation_links"), 1.18 - ""); 1.19 + Content skipLinkContent = HtmlTree.DIV(HtmlStyle.skipNav, getHyperLink( 1.20 + DocLink.fragment("skip-navbar_top"), skipNavLinks, 1.21 + skipNavLinks.toString(), "")); 1.22 navDiv.addContent(skipLinkContent); 1.23 } else { 1.24 body.addContent(HtmlConstants.START_OF_BOTTOM_NAVBAR); 1.25 @@ -519,10 +520,9 @@ 1.26 allClassesId += "navbar_bottom"; 1.27 Content a = getMarkerAnchor("navbar_bottom"); 1.28 navDiv.addContent(a); 1.29 - Content skipLinkContent = getHyperLink(DocLink.fragment("skip-navbar_bottom"), 1.30 - HtmlTree.EMPTY, 1.31 - configuration.getText("doclet.Skip_navigation_links"), 1.32 - ""); 1.33 + Content skipLinkContent = HtmlTree.DIV(HtmlStyle.skipNav, getHyperLink( 1.34 + DocLink.fragment("skip-navbar_bottom"), skipNavLinks, 1.35 + skipNavLinks.toString(), "")); 1.36 navDiv.addContent(skipLinkContent); 1.37 } 1.38 if (header) {