Bug #96537
Updated by Tobias Pfender almost 3 years ago
While updating a few view systems to TYPO3 11 and PHP 8, I noticed this warning: *PHP Warning: Undefined array key "casesensitiveComp" in /var/www/html/htdocs/typo3/sysext/core/Classes/Html/HtmlParser.php line 555* We use the following typoscript snippet to filter out span tags with shy class: <pre><code> // Remove any 'shy' classes from <span> elements: lib.parseFunc_RTE.nonTypoTagStdWrap.HTMLparser.tags.span.fixAttrib.class.removeIfEquals = shy // Remove all <span> elements which have no attribute: lib.parseFunc_RTE.nonTypoTagStdWrap.HTMLparser.rmTagIfNoAttrib = span </code></pre> To reproduce this warning, enable span tags in your rte editor, paste the typoscript snippet into you ts and create a text element with a <span class="shy">test</span> I tried to trace it back and I think the problem lies in HtmlParser->HTMLparserConfig. When I add lib.parseFunc_RTE.nonTypoTagStdWrap.HTMLparser.tags.span.fixAttrib.casesensitiveComp = 0 to my typoscript, this methode removes it from the config.