-
Notifications
You must be signed in to change notification settings - Fork 53
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mailto with plus sign incorrect marked as invalid #182
Comments
Also added
To my config and |
This is a problem as I'm currently using github.com/badoux/checkmail to validate emails and their regex is failing the above. Likely need to remove this and replace with a much more forgiving one. |
There is actually another problem at play here: Footnotes |
I dug a bit deeper. The actual mail validation is not the problem. Mails with This would only concern a small part of the mailto URI handling. RFC6068 states the spaces should be percent encoded and advises against encoding spaces as |
Describe the bug
On this page, I have a
mailto:
link like this:Running
htmltest
(just installed viago install
) it reports:I think this is incorrect: isn't the plus sign valid there, and not representing a space. I tried pasting it into mailtolinkgenerator.com and it also output it with a plus. Looking at rfc6068, there's this table:
If I'm reading it right, the
dot-atom-text
bit (documented in rfc5322 appears to allow+
signs in thelocal-part
:To Reproduce
Steps to reproduce the behaviour:
mailto:
anchor with a+
sign in the local parthtmltest
.htmltest.yml
Source files
https://justatheory.com/2013/06/sqitch-list/
Expected behaviour
A
mailto:
address with a+
in the local part should be valid.Actual behaviour
htmltest
finds it invalid with this message:Versions
OS: macOS 12.1
htmltest: [e.g. 0.10.1, run
htmltest -v
]Additional context
Thanks!
The text was updated successfully, but these errors were encountered: