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

Have a means of marking HTML elements as safe to copy #1120

Open
christianp opened this issue Sep 26, 2024 · 0 comments
Open

Have a means of marking HTML elements as safe to copy #1120

christianp opened this issue Sep 26, 2024 · 0 comments
Labels

Comments

@christianp
Copy link
Member

When you have an HTML element in a question variable, it's easy to try to embed the same element twice in two different places.

It isn't always safe to copy an HTML element because it might have javascript event listeners attached to it.

It should be possible to mark an HTML element as 'non-interactive', which would mean it's safe to copy. Elements created with the html and table functions should have this mark automatically.

Then, when they're inserted into a content area, a copy would be taken.

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

No branches or pull requests

1 participant