Issue Bug Closed

#87114frameborder attribute of iFrames is not removed when using doctype html5

Till Schweneker 12/10/18, 09:17 updated 04/01/20, 21:14

Description

When using the following configuration and adding a YouTube or Vimeo video via the built in media embed, the iFrame is still having the frameborder attribute. The source code of the renderer however implies, that it would be removed.

config {
  doctype = html5
} 

Source code of /typo3/sysext/core/Classes/Resource/Rendering/YouTubeRenderer.php #192

        if (is_object($GLOBALS['TSFE']) && $GLOBALS['TSFE']->config['config']['doctype'] !== 'html5') {
            $attributes[] = 'frameborder="0"';
        }

This behavior is present in TYPO3 9.5.1 and 8.7.20

Reviews 0

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