Actions
Bug #93413
closedoptionSplit in IMAGE source do nothing
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2021-02-03
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Using the example in https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/ContentObjects/Image/Index.html
renderObj { 10 = IMAGE 10 { file { ... } ... layout { srcset { element = <img src="###SRC###" srcset="###SOURCECOLLECTION###" ###PARAMS### ###ALTPARAMS### ###SELFCLOSINGTAGSLASH###> source = ###SRC### ###SRCSETCANDIDATE###,|*|###SRC### ###SRCSETCANDIDATE###
results in
<img src="/storage/shared/hochschule/labels/swissuniversities-logo.png" srcset=" /storage/_processed_/5/6/csm_swissuniversities-logo_685d915ef8.png 687w, /storage/_processed_/5/6/csm_swissuniversities-logo_57966614b3.png 436w, /storage/_processed_/5/6/csm_swissuniversities-logo_74d43a23bf.png 255w," class="image-embed-item img-fluid" sizes="(max-width: 767px) 687px, (min-width: 768px) and (max-width: 991px) 436px, (min-width: 992px) 255px" alt="">
The last comma in srcset attribute is invalid HTML and check failed in W3C validator. Looks like optionSplit in source does not work anymore. In TYPO3 CMS 8 same code do the job.
Actions