[BUGFIX] HTML5: use self-closing tags only if allowed 12/50812/8
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:16:54 +0000 (13:16 +0100)
commit4830763a5b8aa30a3dc52c179993eb2be8c1a5e0
tree714b3884cc5d2e0d35d74b2aed774a747a29a750
parent170287bfc37b1cf8f3554996a24e38cafd674356
[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/50812
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
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