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.
Updated by Heinz Schilling almost 2 years ago
Can be closed as it seems to be fixed elsewhere.
Updated by Riccardo De Contardi over 1 year ago
- Status changed from New to Closed
@Heinz Schilling Thank you and sorry for the late reply.
Closing it.
If you think that this is the wrong decision or experience the issue again please reopen it or open a new issue with a reference to this one.
Thanks again.
Actions