On Wed, 10 Feb 2021 18:20:02 GMT, Hannes Wallnöfer <hann...@openjdk.org> wrote:
> This change gets rid of `<span>` elements used in conjunction with HTML links > whose only purpose is to apply a CSS class to the link. Instead, the CSS > class attribute is applied directly to the link's `<a href="...">` element. > > There are three CSS styles for links previously used with embedded or > embedding `<span>` elements: > > - `type-name-link`, which was applied to a `<span>` element inside the link. > This was generated by passing `true` as argument for the `strong` parameter > in various get*Link methods. > - `member-name-link` and `search-tag-link`, which were applied to a `<span>` > element wrapping the link. > > I could find no visual changes in the generated documentation with one > exception: > > [Class and interface links in the second column of "Uses" page tables][1] > were previously wrapped in a `<span class="member-name-link">` element > causing the whole class name (including non-linked parts such as type > parameters) to be displayed with a bold font. With this change, the > `type-name-link` style is applied only to the active link, leaving non-linked > parts such as type parameters with normal font-weight. > > [1]: > https://download.java.net/java/early_access/jdk17/docs/api/java.base/java/util/class-use/Map.html#java.util This pull request has now been integrated. Changeset: da9895a0 Author: Hannes Wallnöfer <hann...@openjdk.org> URL: https://git.openjdk.java.net/jdk/commit/da9895a0 Stats: 896 lines in 52 files changed: 44 ins; 49 del; 803 mod 8261499: Simplify HTML for javadoc links Reviewed-by: jjg ------------- PR: https://git.openjdk.java.net/jdk/pull/2516