Project

General

Profile

Actions

Bug #93413

closed

optionSplit in IMAGE source do nothing

Added by Heinz Schilling about 3 years ago. Updated 11 months ago.

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 #1

Updated by Riccardo De Contardi about 3 years ago

  • Category set to TypoScript
Actions #2

Updated by Heinz Schilling over 1 year ago

Can be closed as it seems to be fixed elsewhere.

Actions #3

Updated by Riccardo De Contardi 11 months 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

Also available in: Atom PDF