Issue Bug Closed

#93413optionSplit in IMAGE source do nothing

Heinz Schilling 02/03/21, 07:00 updated 05/31/23, 15:34

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 3

  1. Riccardo De Contardi changed category 02/07/21, 14:58

  2. Heinz Schilling commented 12/09/22, 17:21

    Can be closed as it seems to be fixed elsewhere.

  3. Riccardo De Contardi commented and changed status New Closed 05/31/23, 15:34

    @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.