[BUGFIX] HTML5: use self-closing tags only if allowed 64/55664/2
authorEsteban Marín <esteban.marin@bithost.ch>
Wed, 30 Nov 2016 14:57:05 +0000 (15:57 +0100)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Sun, 11 Feb 2018 12:25:05 +0000 (13:25 +0100)
commit97ce5725195b267e0538b03858f8cf3a90e6c130
treef9c0ce227959fb52b9d6e4d85e14e04fadbce6aa
parentc234c6b5e3ede1e99f333183dbb13570ba00a86e
[BUGFIX] HTML5: use self-closing tags only if allowed

For HTML5 only certain HTML tags are allowed to be self-closing
(e.g. <img src="..." />), so this needs to be checked when
parsing HTML.

Resolves: #78844
Releases: master, 8.7
Change-Id: If2a319fa83a4baf7d78559aa23ce34903d42d342
Reviewed-on: https://review.typo3.org/55664
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php