TYPO3 v15 dev-main snapshot ()

This commit is contained in:
2026-08-10 22:31:09 +02:00
commit af8cc155b5
6818 changed files with 642608 additions and 0 deletions
@@ -0,0 +1,33 @@
.. include:: /Includes.rst.txt
.. _feature-71775:
==========================================
Feature: #71775 - HtmlParser allows srcset
==========================================
See :issue:`71775`
Description
===========
The :php:`\TYPO3\CMS\Core\Html\HtmlParser` - most commonly used when rendering RTE fields
in the frontend - now handles the :html:`srcset` attribute.
A casual use case for this are responsive images:
.. code-block:: html
<picture>
<source media="(max-width: 799px)" srcset="small-image.jpg">
<source media="(min-width: 800px)" srcset="larger-image.jpg">
</picture>
Impact
======
Using :html:`source` tag with :html:`srcset` attribute is allowed and
:html:`srcset` values are prefixed correctly.
.. index:: Frontend, RTE, ext:core