Skip to content

Parser reuse interrupts StreamParser #2605

Closed

Description

@jhy

Reusing a Parser supplied to a StreamParser overwrites the active streaming parse state.

And calling Element.append(String) on a streamed element has the same effect, because it uses that parser to parse the added HTML.

The fix will just copy the treebuilder, while preserving configuration and error diagnostics on the supplied parser.

Activity

  1. added
    bugA confirmed bug, that we should fix
    on Sep 14, 2026
  2. added this to the 1.24.1 milestone on Sep 14, 2026
  3. self-assigned this
    on Sep 14, 2026
  4. added a commit that references this issue on Sep 14, 2026
    922ee01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugA confirmed bug, that we should fix

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions