Project

General

Profile

Actions

Bug #22900

closed

Span tags with multiple classes being removed

Added by Adam Casto almost 14 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-06-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

typo3core_bugfix_14748_trunk.patch (1.81 KB) typo3core_bugfix_14748_trunk.patch Administrator Admin, 2010-06-16 06:07

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #24186: HTMLparser - fixAttrib.['class'].list does not assign first element, when attribute value not in listClosed2010-11-23

Actions
Has duplicate TYPO3 Core - Bug #21485: Multiple assigned classes in Text Style get lost in HTML cleaner.ClosedStanislas Rolland2009-11-06

Actions
Actions

Also available in: Atom PDF