Actions
Task #90871
closedChange AssetCollector ViewHelpers attributes async, defer, nomodule, disabled to boolean
Start date:
2020-03-28
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
Currently any value given in the ViewHelper would be output exactly like it was given.
<f:asset.script async="1"...
will produce
<script async="1" ...
As these are boolean HTML attributes they are only allowed to be empty [HTML5] or contain exactly the tag attribute's name (async="async") [any].
As such it would make sense to change the ViewHelpers' parameters to boolean, too.
In order to not break anything and keep the output in line with PageRenderer's page.includeJS
it should output
<script async="async" ...
References:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link
Actions