Skip to content

mailto URIs with multiple recipients not accepted #233

@Qup42

Description

@Qup42

Describe the bug

The standard for the mailto schema (RFC6068) allows multiple recipients that are separated by ,. One example ismailto:foo@example.com,bar@example.com. 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:foo@example.com,bar@example.com"></a>
   </body>
</html>

Expected behaviour

mailto:foo@example.com,bar@exmple.com 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): 'foo@example.com,bar@example.com' --- index.html --> mailto:foo@example.com,bar@example.com

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions