Skip to content

Add regression tests for XML parser idempotency issues#6747

Closed
timtebeek wants to merge 1 commit intomainfrom
timtebeek/xml-parser-857-tests
Closed

Add regression tests for XML parser idempotency issues#6747
timtebeek wants to merge 1 commit intomainfrom
timtebeek/xml-parser-857-tests

Conversation

@timtebeek
Copy link
Copy Markdown
Member

@timtebeek timtebeek commented Feb 16, 2026

Summary

  • Adds regression tests for XML parser failure patterns reported in moderneinc/customer-requests#857.

Analysis of the raw data revealed:

All tests pass on the current parser, confirming these issues are resolved. Tests cover:

  • Comment in prolog + blank lines + root element
  • xmldecl + comment + blank lines + root element
  • xmldecl with standalone="no"
  • Comment with triple-dash inside element content
  • xmldecl after comment → clean ParseError
  • WSDL-style xmldecl

Adds tests covering XML parser failure patterns reported in
moderneinc/customer-requests#857:

- Comment in prolog followed by blank lines then root element
- xmldecl followed by comment then blank lines then root element
- xmldecl with standalone="no" attribute
- Comment with triple-dash inside element content
- xmldecl after comment correctly produces ParseError (malformed XML)
- xmldecl followed by comment then root element
- WSDL-style xmldecl with standalone="no"

All idempotency patterns pass on the current parser, confirming that the
cursor refactoring and JSP parser support added in 2025 resolved the
previously reported failures.
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Feb 16, 2026
@timtebeek timtebeek closed this Feb 16, 2026
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Feb 16, 2026
@timtebeek timtebeek deleted the timtebeek/xml-parser-857-tests branch February 16, 2026 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant