Skip to content

Conversation

@CarlosEduR
Copy link

Previously, validation_message() was always returning a hardcoded "Invalid form" string, now it correctly returns the custom validity error message when the element is suffering from a custom error. Other validation errors still return the "Invalid form" message.

Fixes remaining failing tests in: https://wpt.live/html/semantics/forms/constraints/form-validation-validity-customError.html

@ladybird-bot
Copy link
Collaborator

Hello!

One or more of the commit messages in this PR do not match the Ladybird code submission policy, please check the lint_commits CI job for more details on which commits were flagged and why.
Please do not close this PR and open another, instead modify your commit message(s) with git commit --amend and force push those changes to update this PR.

@CarlosEduR CarlosEduR force-pushed the libweb-fix-validation-message-custom-error branch 3 times, most recently from b5ec3d3 to 69188ae Compare November 21, 2025 17:11
Previously, validation_message() always returned a hardcoded "Invalid
form" string, now it correctly returns the custom validity error
message when the element is suffering from a custom error.
Other validation errors still return the "Invalid form" message.
@CarlosEduR CarlosEduR force-pushed the libweb-fix-validation-message-custom-error branch from 74da874 to abba019 Compare November 25, 2025 16:04
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