Bug #96537
closedPHP Warning: Undefined array key "casesensitiveComp" in ... HTMLParser.php line 555 (PHP 8)
100%
Description
While updating a few 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:
// 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
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.
Updated by Gerrit Code Review over 2 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73098
Updated by Gerrit Code Review over 2 years ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73098
Updated by Gerrit Code Review over 2 years ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73088
Updated by Stefan Bürk over 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 9cce67d9fdc38890f43f29abad9e988cf94d6adf.
Updated by Gerrit Code Review 11 months ago
- Status changed from Closed to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/80982
Updated by Gerrit Code Review 11 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/80982
Updated by Gerrit Code Review 11 months ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81047
Updated by Gerrit Code Review 11 months ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81048
Updated by Philipp Kitzberger 11 months ago
- Status changed from Under Review to Resolved
Applied in changeset f4f8c9ef7b105e05be4d133bf075cbd2c17089d0.