Project

General

Profile

Actions

Feature #93832

closed

Allow arbitrary attributes on script tag

Added by Martin Kutschker about 3 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
Start date:
2021-03-30
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

The spec allows these that are currently unsupported:

nonce
referrerpolicy
nomodule

For forward-compatibility I suggest an "additionalAttributes" property instead of 3 properties.

Actions #1

Updated by Riccardo De Contardi about 3 years ago

  • Category set to Frontend
Actions #2

Updated by Martin Kutschker about 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.

Actions #3

Updated by Benni Mack almost 3 years ago

  • Target version changed from 11.2 to 11.3
Actions #4

Updated by Benni Mack almost 3 years ago

  • Target version changed from 11.3 to 11.4
Actions #5

Updated by Benni Mack over 2 years ago

  • Target version changed from 11.4 to 12 LTS
Actions #6

Updated by Benni Mack over 1 year ago

  • Status changed from New to Needs Feedback

All requested attributes have been added - and more. Anything missing here?

Actions #7

Updated by Martin Kutschker over 1 year 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.

Actions #8

Updated by Benni Mack over 1 year 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.

Actions

Also available in: Atom PDF