Feature #93832
closedAllow arbitrary attributes on script tag
0%
Description
The spec allows these that are currently unsupported:
nonce
referrerpolicy
nomodule
For forward-compatibility I suggest an "additionalAttributes" property instead of 3 properties.
Updated by Martin Kutschker over 3 years ago
Two slips:
nomodule is already possible in v10 for includeJS.
nonce makes only sense for inline scripts which cannot be loaded (currently) with includeJS. For jsInline it only makes sense if the content is not concatenated and unchanged by TYPO3.
Updated by Benni Mack about 3 years ago
- Target version changed from 11.4 to 12 LTS
Updated by Benni Mack about 2 years ago
- Status changed from New to Needs Feedback
All requested attributes have been added - and more. Anything missing here?
Updated by Martin Kutschker about 2 years ago
I don't know.
The idea of this ticket is that TYPO3 stays forward compatible if arbitary attributes can be set. Who knows what the future brings.
Feel free though to close the ticket.
Updated by Benni Mack about 2 years ago
- Status changed from Needs Feedback to Closed
Martin Kutschker wrote in #note-7:
I don't know.
The idea of this ticket is that TYPO3 stays forward compatible if arbitary attributes can be set. Who knows what the future brings.
Feel free though to close the ticket.
Just tested it again for you.
The ViewHelper
a) supports the features mentioned before
b) supports "additionalAttributes",
c) supports data attributes as well
since 2020.
I thus close this issue.