On Mon, 2 Sep 2024 11:20:24 GMT, Hannes Wallnöfer <hann...@openjdk.org> wrote:

> The inconsistent use of HtmlTree has bugged me for a long time.

Yes, me too.  It helped to think of adding `HtmlTree.of(HtmlTag)` for the 
outlier cases. and we might want to add overloads that take an `HtmlId` and/or 
`HtmlStyle`.

A separate implementation-cleanup might be to regularize the use of `of` and/or 
constructors within `HtmlTree` itself, but that is of lesser use than 
regularizing client use of the class.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/20778#issuecomment-2327196757

Reply via email to