From 49b1e19f70c652cfe0a3ab65b765566112c0b6f9 Mon Sep 17 00:00:00 2001
From: Arnd Messer <info@arndmesser.de>
Date: Thu, 20 Nov 2014 19:33:34 +0100
Subject: [PATCH] [BUGFIX] Source element within picture element has wrong src
 attribute

Change it from src to srcset as described in the latest HTML5
specification for master and 6.2

Resolves: #63107
Releases: master, 6.2
Change-Id: Ia3180873af948db30bb60f2f071e5ccfe2283baf
Reviewed-on: http://review.typo3.org/34405
Reviewed-by: Martin Eberle <martin.eberle@gmail.com>
Tested-by: Martin Eberle <martin.eberle@gmail.com>
Reviewed-by: Martin Ficzel <martin.ficzel@gmx.de>
Reviewed-by: Ingo Schmitt <is@marketing-factory.de>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Jens Jacobsen <typo3@jens-jacobsen.de>
Tested-by: Jens Jacobsen <typo3@jens-jacobsen.de>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
---
 typo3/sysext/css_styled_content/static/setup.txt      | 3 +--
 typo3/sysext/css_styled_content/static/v6.2/setup.txt | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/typo3/sysext/css_styled_content/static/setup.txt b/typo3/sysext/css_styled_content/static/setup.txt
index 69ea6d79c3d1..9bd2d22a2561 100644
--- a/typo3/sysext/css_styled_content/static/setup.txt
+++ b/typo3/sysext/css_styled_content/static/setup.txt
@@ -681,7 +681,7 @@ tt_content.image.20 {
 			}
 			picture {
 				element = <picture>###SOURCECOLLECTION###<img src="###SRC###"###PARAMS######ALTPARAMS######SELFCLOSINGTAGSLASH###></picture>
-				source = <source src="###SRC###" media="###MEDIAQUERY###"###SELFCLOSINGTAGSLASH###>
+				source = <source srcset="###SRC###" media="###MEDIAQUERY###"###SELFCLOSINGTAGSLASH###>
 			}
 			data {
 				element = <img src="###SRC###"###SOURCECOLLECTION######PARAMS######ALTPARAMS######SELFCLOSINGTAGSLASH###>
@@ -2251,4 +2251,3 @@ plugin.tx_cssstyledcontent._CSS_DEFAULT_STYLE (
 	table.contenttable-color-243 { background-color: {$styles.content.table.backgroundColor.243}; }
 	table.contenttable-color-244 { background-color: {$styles.content.table.backgroundColor.244}; }
 )
-
diff --git a/typo3/sysext/css_styled_content/static/v6.2/setup.txt b/typo3/sysext/css_styled_content/static/v6.2/setup.txt
index 5fe5f03378b2..27f069b4c8ea 100644
--- a/typo3/sysext/css_styled_content/static/v6.2/setup.txt
+++ b/typo3/sysext/css_styled_content/static/v6.2/setup.txt
@@ -681,7 +681,7 @@ tt_content.image.20 {
 			}
 			picture {
 				element = <picture>###SOURCECOLLECTION###<img src="###SRC###"###PARAMS######ALTPARAMS######SELFCLOSINGTAGSLASH###></picture>
-				source = <source src="###SRC###" media="###MEDIAQUERY###"###SELFCLOSINGTAGSLASH###>
+				source = <source srcset="###SRC###" media="###MEDIAQUERY###"###SELFCLOSINGTAGSLASH###>
 			}
 			data {
 				element = <img src="###SRC###"###SOURCECOLLECTION######PARAMS######ALTPARAMS######SELFCLOSINGTAGSLASH###>
@@ -2246,4 +2246,3 @@ plugin.tx_cssstyledcontent._CSS_DEFAULT_STYLE (
 	table.contenttable-color-243 { background-color: {$styles.content.table.backgroundColor.243}; }
 	table.contenttable-color-244 { background-color: {$styles.content.table.backgroundColor.244}; }
 )
-
-- 
GitLab