8366278: Form control element <select> has no associated label

Reviewed-by: hannesw
This commit is contained in:
Pasam Soujanya 2025-09-11 13:58:51 +00:00 committed by Hannes Wallnöfer
parent 4ea8979b93
commit 781f2b2f81
2 changed files with 4 additions and 0 deletions

View File

@ -108,6 +108,7 @@ public class SearchWriter extends HtmlDocletWriter {
var select = HtmlTree.of(HtmlTag.SELECT)
.setId(HtmlId.of("search-modules"))
.put(HtmlAttr.ARIA_LABEL, resources.getText("doclet.selectModule"))
.add(HtmlTree.of(HtmlTag.OPTION)
.put(HtmlAttr.VALUE, "")
.add(contents.getContent("doclet.search.all_modules")));

View File

@ -787,3 +787,6 @@ doclet.NoFrames_specified=\
doclet.footer_specified=\
The -footer option is no longer supported and will be ignored.\n\
It may be removed in a future release.
doclet.selectModule=\
Select the module to search in.