[TASK] Change boolean HTML attributes in AssetCollector ViewHelpers
As boolean HTML attributes shall either have a value equal to the attribute name (e.g. async="async") or have no value at all (only allowed in HTML5), the ViewHelper reflects that now. All boolean HTML attributes on <script> (async, defer, nomodule) and <link> (disabled) have been changed to Fluid "bool" ("0" and "false" is false, rest is true). This allows using the ViewHelpers with e.g. async="1" which before would have output <script async="1">. Now it is registered as async="async" with AssetCollector. References: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link Resolves: #90871 Releases: master Change-Id: I5052ff6ad86e14a9b55f507ba0f3dcf7ea3010e6 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63996 Tested-by:TYPO3com <noreply@typo3.com> Tested-by:
Frank Nägler <frank.naegler@typo3.org> Tested-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by:
Frank Nägler <frank.naegler@typo3.org> Reviewed-by:
Andreas Fernandez <a.fernandez@scripting-base.de>
Showing
- typo3/sysext/fluid/Classes/ViewHelpers/Asset/CssViewHelper.php 7 additions, 1 deletion.../sysext/fluid/Classes/ViewHelpers/Asset/CssViewHelper.php
- typo3/sysext/fluid/Classes/ViewHelpers/Asset/ScriptViewHelper.php 11 additions, 3 deletions...sext/fluid/Classes/ViewHelpers/Asset/ScriptViewHelper.php
Please register or sign in to comment