Skip to content

refactor: leave non-ASCII case matching to each provider - #19

Merged
lourens-octopus merged 1 commit into
mainfrom
lourens/bmbb-1553/ascii-only-case-matching
Nov 22, 2026
Merged

lourens-octopus merged 1 commit into
mainfrom
lourens/bmbb-1553/ascii-only-case-matching

Conversation

@lourens-octopus

Copy link
Copy Markdown
Contributor

Follow-up to #13, from this review comment. Part of BMBB-1553.

Case-insensitive matching of context attributes now uses plain str.upper, and the non-ASCII tests are gone.

The providers already disagree beyond ASCII. The browser provider matches Straße to STRASSE, while .NET and Java don't. That only matters for unusual attribute values, so we accept the difference rather than pin one side. Python now behaves like the browser provider.

ASCII and locale-independent matching are unchanged, and the specification fixtures still cover them.

🤖 Generated with Claude Code

The providers already disagree on characters such as "ß", whose uppercase
is "SS": the browser provider expands them, .NET and Java don't. Matching
.NET exactly would take more than a per-character uppercase, and it only
matters for unusual attribute values, so go back to str.upper and stop
pinning the non-ASCII cases. ASCII matching, which every provider agrees
on, is still covered by the specification fixtures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lourens-octopus
lourens-octopus requested a review from a team as a code owner November 22, 2026 21:12
@lourens-octopus
lourens-octopus merged commit 9e3d905 into main Nov 22, 2026
15 checks passed
@lourens-octopus
lourens-octopus deleted the lourens/bmbb-1553/ascii-only-case-matching branch November 22, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants