[BUGFIX] HTMLParser doesn't remove endtag when applying rmTagIfNoAttrib 81/22681/7
authorAlexander Stehlik <alexander.stehlik@gmail.com>
Thu, 16 Jul 2015 18:43:45 +0000 (20:43 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Fri, 17 Jul 2015 09:46:29 +0000 (11:46 +0200)
commit5e3bd676659f736da9e52967052a8db4da964a64
treea581d18f9ed6537903ebaa8aaa75b697629abe11
parenta80d8015337e0051b6e0a7d55dc9840d352538c8
[BUGFIX] HTMLParser doesn't remove endtag when applying rmTagIfNoAttrib

Solution: Force nesting = 1 when rmTagIfNoAttrib is set on a tag.

Releases: master, 6.2
Resolves: #22871
Resolves: #50144
Change-Id: Ibdadf07d80591588c0698ed322905cc0be45fe7e
Reviewed-on: http://review.typo3.org/22681
Reviewed-by: Markus Sommer <markussom@posteo.de>
Tested-by: Markus Sommer <markussom@posteo.de>
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
typo3/sysext/core/Classes/Html/HtmlParser.php
typo3/sysext/core/Tests/Unit/Html/HtmlParserTest.php