[BUGFIX] Do not crop inside known html tags 41/42841/3
authorLudwig Rafelsberger <ludwig.rafelsberger@gmx.at>
Sat, 22 Aug 2015 18:10:12 +0000 (20:10 +0200)
committerBenni Mack <benni@typo3.org>
Sun, 11 Oct 2015 21:04:11 +0000 (23:04 +0200)
commit370e99379c33fd18b5c6de2e8d04dca1270e1237
tree30fce86416d8408823db59cfa24dcff6b80b7020
parentb0add85ad068c361463be0c2ba6c6c0301625f8d
[BUGFIX] Do not crop inside known html tags

This change adds missing tags to the regex used to match html tags.
Furthermore, scripting tags are added, so that they will not be counted
nor split apart.

This list of html tags was extracted from the current W3C html5
standard recommendation at [1] and merged with tags from the current
code that are not (or no longer) in the W3C standard recommendation
(e.g: TYPO3's internal <link> tag).

---
[1]: http://www.w3.org/TR/html5/semantics.html#semantics

Resolves: #69263
Releases: master, 6.2
Change-Id: Id58dcf3470ed06256b9b8f744dd13891757faef1
Reviewed-on: http://review.typo3.org/42841
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php