Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
[Validator] Email - newallow-no-tld mode#17360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[Validator] Email - newallow-no-tld mode#17360
Uh oh!
There was an error while loading.Please reload this page.
Conversation
…w3c official specification (guillemfondin)This PR was squashed before being merged into the 6.2 branch.Discussion----------[Validator] new email validation option to match with w3c official specification| Q | A| ------------- | ---| Branch? | 6.2| Bug fix? | no| New feature? | yes| Deprecations? | no| Tickets |Fix#47712| License | MIT| Doc PR |symfony/symfony-docs#17360## WHATEmail validator no matches with w3c official specication (that allow no tld) see#47712 for details.## WHYIn general, for public common usage, developers may not need to give users this liberty.Except for specific use case, (internal email for eg) in companies...## HOWAdd an option for accept tld (already exist `Email::VALIDATION_MODE_HTML5`) or not (official spec `Email::VALIDATION_MODE_HTML5_ALLOW_NO_TLD`)Commits-------23047d9 [Validator] new email validation option to match with w3c official specification
…w3c official specification (guillemfondin)This PR was squashed before being merged into the 6.2 branch.Discussion----------[Validator] new email validation option to match with w3c official specification| Q | A| ------------- | ---| Branch? | 6.2| Bug fix? | no| New feature? | yes| Deprecations? | no| Tickets | Fix #47712| License | MIT| Doc PR |symfony/symfony-docs#17360## WHATEmail validator no matches with w3c official specication (that allow no tld) see #47712 for details.## WHYIn general, for public common usage, developers may not need to give users this liberty.Except for specific use case, (internal email for eg) in companies...## HOWAdd an option for accept tld (already exist `Email::VALIDATION_MODE_HTML5`) or not (official spec `Email::VALIDATION_MODE_HTML5_ALLOW_NO_TLD`)Commits-------23047d978f [Validator] new email validation option to match with w3c official specification
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks!
We should also add a.. versionadded:: 6.2 block after the list to indicate that this mode was introduced in 6.2.
Uh oh!
There was an error while loading.Please reload this page.
0bda552 to485d57eCompareThank you for documenting your code contribution,@guillemfondin! |
SeeRelated feature PR
As suggestedhere ; the actual description of
html5mode isn't consistent with the one provided by browsers. Browsers allow no tld,html5mode not.I proprose to move the actual description of
html5mode to the newallow-no-tldmode description, and clarify the subtlety (force .tld) of the actualhtml5mode.