Bug #22900
closedSpan tags with multiple classes being removed
0%
Description
When a span with more than one class is present within a paragraph, it is being removed. I have verified it with a fresh install of 4.3.3. Here is what I have found so far:
Span within a paragraph with a single class works fine. Classes are properly listed in allowedClasses. All work individually.
Span within another blocklevel element, such as H1, with multiple classes work fine.
Is happening in the transformation from RTE -> DB. Manually adding classes via the database presents fine in both FE and RTE. Subsequently saving from the RTE will remove the classes.
Setting rmTagIfNoAttrib to '0' results in the span being left intact but with no class(es). Meaning span is being stripped because it is being left empty due to a problem handling the classes and not a problem with the tag in particular.
Problem presumably in t3lib/class.t3lib_parsehtml_proc.php
(issue imported from #M14748)
Files
Updated by Stanislas Rolland over 14 years ago
Please try attached patch (applies to t3lib/class.t3lib_parsehtml.php).
Updated by Adam Casto over 14 years ago
Seems to be working with the patch. Thanks!
Updated by Stanislas Rolland over 14 years ago
The patch is now on the core list. Please give your +1.
Updated by Stanislas Rolland over 14 years ago
Thanks. I saw the vote in the list. Not sure why it is not linked to the initial post, but that's ok.
Updated by Stanislas Rolland over 14 years ago
Committed to SVN TYPO3core trunk (revision 7945) and branch TYPO3_4-3 (revision 7946).