This page tests create-mailto.js on different
HTML
fragments. The table below contains one example per row.
The first column shows a code fragment that should not,
according the rules of anchor links in
HTML
be modified to add a mailto:
link.
The second column shows your browser's rendering of that
fragment after create-mailto.js has processed the document.
The test passes if table contains no
<a href="mailto:">
links.
HTML | output |
---|---|
<a class="email"
href="./">username@example.com</a>
|
username@example.com |
<a class="u-email"
href="./">username@example.com</a>
|
username@example.com |
<a itemprop="email"
href="./">username@example.com</a>
|
username@example.com |
<span class="email"><a
href="./">username</a>@example.com</span>
|
username@example.com |
<p itemprop="email"><a
href="./">username</a>@example.com</p>
|
username@example.com |
<em
data-email="username@example.com">email
<a href="./">me</a></em>
|
email me |
|
|
<a href="./">foo <span
class="email">username@example.com</span></a>
|
foo username@example.com |
|
bar username@example.com |
|
baz email me |
|
|
<a href="./"><img
data-email="username@example.com" ...
></a>
|
![]() |
|