---
title: "Feature: #71775 - HtmlParser allows srcset"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-71775"
source: "Changelog/11.4/Feature-71775-HtmlParserAllowsSrcset.rst"
typo3-version: "11.4"
typo3-major: 11
type: "feature"
issue: 71775
forge: "https://forge.typo3.org/issues/71775"
tags: ["Frontend", "RTE", "ext:core"]
rendered: "2026-09-29T06:32:46+00:00"
---

# Feature: #71775 - HtmlParser allows srcset {#feature-71775}

See [forge#71775](https://forge.typo3.org/issues/71775)

## Description {#description}

The `\TYPO3\CMS\Core\Html\HtmlParser` \- most commonly used when rendering RTE fields
in the frontend - now handles the `srcset` attribute.

A casual use case for this are responsive images:

```html
<picture>
    <source media="(max-width: 799px)" srcset="small-image.jpg">
    <source media="(min-width: 800px)" srcset="larger-image.jpg">
</picture>
```

## Impact {#impact}

Using `source` tag with `srcset` attribute is allowed and
`srcset` values are prefixed correctly.
