Skip to content

Note that data blocks are not scripted content#1409

Merged
dauwhe merged 8 commits intomasterfrom
fix/issue-1352
Dec 17, 2020
Merged

Note that data blocks are not scripted content#1409
dauwhe merged 8 commits intomasterfrom
fix/issue-1352

Conversation

@mattgarrish
Copy link
Member

@mattgarrish mattgarrish commented Nov 6, 2020

Fixes #1352 by adding a note to the scripting section that HTML data blocks do not represent scripted content.

The SVG case is a little murkier, as it says the element is the same as HTML but goes on to define things slightly differently. A script without a type is treated as javascript, otherwise the block is executed or not depending on whether the media type is recognized as a supported scripting language. That's not the same as HTML where everything outside of JS and 'module' types are data blocks.

I added a sentence noting the same data block concept does not apply, but could in the future. We might just have to live with json in svg having to be set as scripted in the package for now. It's probably not a common case, though.


Preview | Diff

@dauwhe dauwhe merged commit 269ffee into master Dec 17, 2020
@dauwhe dauwhe deleted the fix/issue-1352 branch December 17, 2020 15:45
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.

Definition of a scripting context may be overzealous

4 participants