You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
fixes#1120
HTML elements with the attribute `data-interactive="false"` are
considered to be noninteractive and can be safely copied before
embedding in content areas.
The `table`, `html`, `image` and `scientificnumberhtml` functions add
this attribute to the elements that they create.
Need to document this.
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
andtable
functions should have this mark automatically.Then, when they're inserted into a content area, a copy would be taken.
The text was updated successfully, but these errors were encountered: