htmltest icon indicating copy to clipboard operation
htmltest copied to clipboard

mailto URIs with multiple recipients not accepted

Open Qup42 opened this issue 10 months ago • 0 comments

Describe the bug

The standard for the mailto schema (RFC6068) allows multiple recipients that are separated by ,. One example ismailto:[email protected],[email protected]. Such links that contain multiple recipients are incorrectly flagged as invalid by htmltest.

To Reproduce

Steps to reproduce the behaviour:

  1. Run with empty config on index.html: htmltest index.html
  2. See error

.htmltest.yml (empty)

index.html

<!DOCTYPE html>
<html>
   <head></head>
   <body>
      <a href="mailto:[email protected],[email protected]"></a>
   </body>
</html>

Expected behaviour

mailto:[email protected],[email protected] is a valid mailto URI as per RFC6068. No error or warning should be raised by htmltest.

Actual behaviour

The link is flagged as invalid:

invalid email address (invalid format): '[email protected],[email protected]' --- index.html --> mailto:[email protected],[email protected]

Versions

  • OS: Arch Linux
  • htmltest: 0.17.0

Additional context

The link is declared as invalid by htmltest because the individual recipients are not split up. I will try to provide a PR for this Issue. I expect the PR to be of medium size.

Qup42 avatar Apr 08 '24 19:04 Qup42