Skip to content

fix: suppress customizable select warning - #836

Open
jibin7jose wants to merge 1 commit into
vitejs:mainfrom
jibin7jose:fix/customizable-select-warning
Open

jibin7jose wants to merge 1 commit into
vitejs:mainfrom
jibin7jose:fix/customizable-select-warning

Conversation

@jibin7jose

Copy link
Copy Markdown

What is this PR solving?

This PR fixes a false-positive warning for customizable <select> markup in vite-plugin-vue. Valid <option> content was being reported as invalid HTML even though it is allowed by the modern customizable select pattern.

Fixes #828

What other alternatives have you explored?

I considered suppressing all <option> warnings, but that would be too broad. This change keeps the fix narrow and only filters the specific false-positive case.

Are there any parts you think require more attention from reviewers?

Please review the warning-matching logic to make sure it only suppresses the customizable select case and does not hide unrelated compiler warnings.

Tests

I added a regression fixture and a test that reproduces the customizable select case and verifies the warning is no longer emitted.

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.

False negative warning "<span> cannot be child of <option>, according to HTML specifications." for customizable select

1 participant