langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageIndexFrameWriter.java
--- a/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageIndexFrameWriter.java Wed Jul 05 20:28:21 2017 +0200
+++ b/langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/formats/html/PackageIndexFrameWriter.java Mon Apr 13 18:05:23 2015 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -83,7 +83,9 @@
String tableSummary, Content body) {
Content heading = HtmlTree.HEADING(HtmlConstants.PACKAGE_HEADING, true,
packagesLabel);
- Content div = HtmlTree.DIV(HtmlStyle.indexContainer, heading);
+ HtmlTree htmlTree = (configuration.allowTag(HtmlTag.MAIN))
+ ? HtmlTree.MAIN(HtmlStyle.indexContainer, heading)
+ : HtmlTree.DIV(HtmlStyle.indexContainer, heading);
HtmlTree ul = new HtmlTree(HtmlTag.UL);
ul.setTitle(packagesLabel);
for (PackageDoc aPackage : packages) {
@@ -94,8 +96,8 @@
ul.addContent(getPackage(aPackage));
}
}
- div.addContent(ul);
- body.addContent(div);
+ htmlTree.addContent(ul);
+ body.addContent(htmlTree);
}
/**
@@ -146,26 +148,26 @@
* Adds "All Classes" link for the top of the left-hand frame page to the
* documentation tree.
*
- * @param div the Content object to which the all classes link should be added
+ * @param ul the Content object to which the "All Classes" link should be added
*/
- protected void addAllClassesLink(Content div) {
+ protected void addAllClassesLink(Content ul) {
Content linkContent = getHyperLink(DocPaths.ALLCLASSES_FRAME,
allclassesLabel, "", "packageFrame");
- Content span = HtmlTree.SPAN(linkContent);
- div.addContent(span);
+ Content li = HtmlTree.LI(linkContent);
+ ul.addContent(li);
}
/**
* Adds "All Profiles" link for the top of the left-hand frame page to the
* documentation tree.
*
- * @param div the Content object to which the all profiles link should be added
+ * @param ul the Content object to which the "All Profiles" link should be added
*/
- protected void addAllProfilesLink(Content div) {
+ protected void addAllProfilesLink(Content ul) {
Content linkContent = getHyperLink(DocPaths.PROFILE_OVERVIEW_FRAME,
allprofilesLabel, "", "packageListFrame");
- Content span = HtmlTree.SPAN(linkContent);
- div.addContent(span);
+ Content li = HtmlTree.LI(linkContent);
+ ul.addContent(li);
}
/**