On Thu, 15 Jun 2023 07:43:46 GMT, Alexey Ivanov <[email protected]> wrote:
> Does it do what the `getIterator` method promise to do? It doesn't because it > iterates over `LeafElement`-s only: As per the spec wordings, `The [getIterator(HTML.Tag t)](https://docs.oracle.com/en/java/javase/20/docs/api/java.desktop/javax/swing/text/html/HTMLDocument.html#getIterator(javax.swing.text.html.HTML.Tag)) method can also be used for finding all occurrences of the specified HTML tag in the document.` which I think is what we get with the fix an Iterator object with next block tag ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/14466#discussion_r1230719224
