Feature #93832
closed
Allow arbitrary attributes on script tag
Added by Martin Kutschker over 3 years ago.
Updated about 2 years ago.
Description
The spec allows these that are currently unsupported:
nonce
referrerpolicy
nomodule
For forward-compatibility I suggest an "additionalAttributes" property instead of 3 properties.
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.
- Target version changed from 11.2 to 11.3
- Target version changed from 11.3 to 11.4
- Target version changed from 11.4 to 12 LTS
- Status changed from New to Needs Feedback
All requested attributes have been added - and more. Anything missing here?
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.
- 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.
Also available in: Atom
PDF