Repository navigation
[atoms] Clear invalid input in the legacy atom - #18326
Open
juliopiubello wants to merge 3 commits into
Open
juliopiubello wants to merge 3 commits into
juliopiubello wants to merge 3 commits into
Conversation
Contributor
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
juliopiubello
force-pushed
the
fix/legacy-clear-invalid-input
branch
from
November 17, 2026 07:20
c9ac937 to
3cff0c0
Compare
juliopiubello
marked this pull request as draft
November 17, 2026 12:19
juliopiubello
marked this pull request as ready for review
November 24, 2026 23:53
Contributor
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issues
Chromium issue 575945224 · ChromeDriver change 8612892
What does this PR do?
Fix the legacy Clear atom's handling of invalid input with an empty serialized value. Invalid month input is reset, and invalid number input goes through the existing change and unfocus path.
Implementation Notes
Check
validity.badInputfor input elements alongsidevalue. Preserve the legacy atom's separate path for valid, empty number inputs. The newer TypeScript Clear implementation already handlesbadInput.This follows the WebDriver clear-a-resettable-element algorithm: empty invalid input must continue to the clearing steps.
Add focused tests for invalid month and number inputs, plus a valid-empty number control for focus and events. The invalid-input fixtures use a controlled validity property because assigning a value in JavaScript cannot create native invalid editing state.
AI assistance
Types of changes