> Please review this small patch to add a new factory method `HtmlTree > IMG(DocPath src, String alt)`, to provide a convenient way to reliably create > valid tree nodes. > > Previously, all uses of `HtmlTag.IMG` followed a similar pattern : > > HtmlTree.of(HtmlTag.IMG) > .put(HtmlAttr.SRC, docpath) > .put(HtmlAttr.ALT, alt) > > > However, it was easy to forget to add the required "alt" attribute. Those > have been replaced by the new factory method. > > No tests are required as part of this change. > > TIA
Nizar Benalla has updated the pull request incrementally with one additional commit since the last revision: remove empty line ------------- Changes: - all: https://git.openjdk.org/jdk/pull/24204/files - new: https://git.openjdk.org/jdk/pull/24204/files/a00aecc8..fe9a7a58 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=24204&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=24204&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 1 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/24204.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/24204/head:pull/24204 PR: https://git.openjdk.org/jdk/pull/24204