#93832Allow arbitrary attributes on script tag
Description
The spec allows these that are currently unsupported:
nonce
referrerpolicy
nomodule
For forward-compatibility I suggest an “additionalAttributes” property instead of 3 properties.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 8
-
Riccardo De Contardi changed category 03/30/21, 20:04
-
Martin Kutschker commented 04/03/21, 10:36
-
Benni Mack changed target version 05/07/21, 19:37
-
Benni Mack changed target version 07/08/21, 15:01
-
Benni Mack changed target version 09/07/21, 07:45
-
Benni Mack commented and changed status
NewNeeds Feedback 11/10/22, 09:14All requested attributes have been added – and more. Anything missing here?
-
Martin Kutschker commented 11/11/22, 19:54
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.
-
Benni Mack commented and changed status
Needs FeedbackClosed 11/11/22, 20:00Martin 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 wellsince 2020.
I thus close this issue.
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.