---
title: "Breaking: #98308 - Legacy HTML attributes border and longdesc removed from frontend rendering"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:breaking-98308-1662713106"
source: "Changelog/12.0/Breaking-98308-LegacyHTMLAttributesBorderAndLongdescRemovedFromFrontendRendering.rst"
typo3-version: "12.0"
typo3-major: 12
type: "breaking"
issue: 98308
forge: "https://forge.typo3.org/issues/98308"
tags: ["TypoScript", "PartiallyScanned", "ext:frontend"]
rendered: "2026-09-19T12:12:50+00:00"
---

# Breaking: #98308 - Legacy HTML attributes border and longdesc removed from frontend rendering {#breaking-98308-1662713106}

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

## Description {#description}

The `IMAGE` content object previously supported `longdesc` and `border` attributes
to be set to the `<img>` tag which was composed. The appropriate settings
`longDesc` and `border` within `IMAGE` cObject
have been removed.

The TypoScript property `config.disableImgBorderAttr` has been removed
as well.

Also, the `\TYPO3\CMS\Core\Imaging\GraphicalFunctions` PHP class, which
generated default `<img>` tags via the `imgTag()` method, has been
adapted as the method is removed.

## Impact {#impact}

Using the TypoScript settings will have no effect anymore.

Calling the method `\TYPO3\CMS\Core\Imaging\GraphicalFunctions->imgTag()`
will result in a fatal PHP error.

## Affected installations {#affected-installations}

TYPO3 installation using TypoScript `IMAGE` cObject explicitly
requiring the `border` and `longDesc` attributes.

## Migration {#migration}

Instead of border attribute, styling via CSS should be used.

See [https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/border](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/border).

Also use alternative markup for accessibility with the "title" attribute instead
of "longdesc".

See [https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/longDesc](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/longDesc)
for examples on how to migrate.

For the removed `\TYPO3\CMS\Core\Imaging\GraphicalFunctions->imgTag()`
method, it is recommended for PHP developers to build the HTML code themselves.
