Skip to content

Set iframe srcdoc attribute to blank to prevent iframe navigation #844

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

limzykenneth
Copy link
Member

Resolves #822

Instead of setting iframe srcdoc to undefined which cause a navigation event, set it to a blank string which only change the inner content of the same iframe without navigation.

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.

Back button/history broken in Firefox on reference pages
1 participant