Skip to content
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

Make mailto anchor work inside iframe #495

Merged
merged 1 commit into from
Sep 9, 2022
Merged

Conversation

glmvc
Copy link
Contributor

@glmvc glmvc commented May 8, 2022

Fixes mdn/content#20436.

In Chrome Version 105 (MacOS Monterey and default mail app) clicking on the mailto link causes an error (iframe) in the first interactive example:
Screen Shot 2022-05-08 at 18 07 47

In Safari nothing happens on click in my case (no error and no mail window).
In Firefox it seems to work without any problems.

My solution is giving the <a> element the attribute target="_blank". Is _top or _parent better/more correct in this case?
Maybe another solution?

Note that the "note box" in this task has to be updated too in mdn/content. (just changing "The first link..." to "The links...")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mailto anchor not working inside iframe
2 participants