Skip to content

fix(selectOption): match label with html whitespace#40211

Closed
yury-s wants to merge 1 commit intomicrosoft:mainfrom
yury-s:fix-40210
Closed

fix(selectOption): match label with html whitespace#40211
yury-s wants to merge 1 commit intomicrosoft:mainfrom
yury-s:fix-40210

Conversation

@yury-s
Copy link
Copy Markdown
Member

@yury-s yury-s commented Apr 14, 2026

Summary

  • selectOption({ label }) now matches options whose text contains HTML whitespace entities (e.g.  ) by falling back to a normalized-whitespace comparison when the exact label does not match.

Fixes #40210

@gimler
Copy link
Copy Markdown

gimler commented Apr 14, 2026

@yury-s Why you copy the code from the original PR #40207 instate of reopen it? or cherry-pick my commit and adjust the tests.

@yury-s
Copy link
Copy Markdown
Member Author

yury-s commented Apr 14, 2026

This one is just vibe coded. We can take yours if it's better.

@yury-s yury-s closed this Apr 14, 2026
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.

[Bug]: select option with html encoded whitespace

2 participants