jdk-24/test/langtools/tools/doclint/tidy/InvalidName.java
Yoshiki Sato 28e1f4d9ee 8247957: remove doclint support for HTML 4
8257204: Remove usage of -Xhtmlversion option from javac
8256313: JavaCompilation.gmk needs to be updated not to use --doclint-format html5 option
8258460: Remove --doclint-format option from javac
8256312: Valid anchor 'id' value not allowed

Reviewed-by: jjg, ihse
2021-01-06 22:48:00 +00:00

21 lines
489 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8004832 8247957
* @summary Add new doclint package
* @library ..
* @modules jdk.javadoc/jdk.javadoc.internal.doclint
* @build DocLintTester
* @run main DocLintTester -ref InvalidName.out InvalidName.java
*/
// tidy: Warning: <a> cannot copy name attribute to id
/**
* <a id="abc">valid</a>
* <a id="abc123">valid</a>
* <a id="a.1:2-3_4">valid</a>
* <a id="foo()">valid</a>
* <a id="foo() ">invalid</a>
*/
public class InvalidName { }