Test & ensure attributes and complex HTML within the mailto link doesn't break

Created on 10 July 2023, about 1 year ago
Updated 13 July 2023, about 1 year ago

Problem/Motivation

We need to ensure that SpamSpan doesn't break mailto DOM structure for more complex cases that a simple mailto link, like:

With all allowed attributes on <a> elements:
<a href="mailto:example.com" class="custom class" id="custom-id">Email us!</a>
(please check docs, what else is allowed and typically used)

With child elements within the a href:
<a href="mailto:example.com"><span class="label">Contact:</span> <span class="value">Email us!</span></a>

With an email address within the a href link:
info@example.com

I'd suggest single tests for each case and one complex, combined test.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024