Project

General

Profile

Actions

Bug #50144

closed

HTMLParser does not remove end tag when applying rmTagIfNoAttrib

Added by Robert Vock over 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2013-07-18
Due date:
% Done:

100%

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

Description

When I enter the following HTML in the html-mode of the RTE with a default configuration, the opening span is removed, but the closing span will stay as-is:

<table><tbody><tr><td><p><b><span>Test</span></b></p></td></tr></tbody></table>

This will save the following HTML to the database:

<table><tbody><tr><td><p><b>Test</span></b></p></td></tr></tbody></table>

Disabling rmTagIfNoAttrib for spans is a workaround, but this will leave all empty spans in the HTML code instead of cleaning them out:

RTE.default.proc.entryHTMLparser_db.tags.span.rmTagIfNoAttrib = 0

As a side note:
When editing a text content element with this incorrect HTML in IE8, the situation gets worse with every time I hit save (or just toggle between modes):

<table><tbody><tr><td><p><b>Test</span><//span></ span=""><//></ span=""><//></><//></b></p></td></tr></tbody></table>

Every click on the <> to toggle between wysiwyg and text-mode will add more junk code.


Related issues 3 (1 open2 closed)

Related to TYPO3 Core - Bug #95392: HTMLparser don't remove closing tagNew2021-09-28

Actions
Has duplicate TYPO3 Core - Bug #22871: Handling of <span> tags and span.rmTagIfNoAttrib = 1Closed2010-06-12

Actions
Has duplicate TYPO3 Core - Bug #45084: Strange <//span> tag when copying from ms word documentClosed2013-02-01

Actions
Actions

Also available in: Atom PDF