Project

General

Profile

Actions

Bug #23869

closed

Incorrect FE rendering of thead element in RTE content in v4.4.4 & v2.0.5

Added by Matthew over 13 years ago. Updated over 13 years ago.

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

0%

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

Description

This is the same issue as bug 0016038.

The <thead> section of rte tables is being rendered outside the <table>

Paste this code into your RTE and see what it renders in the browser:

<table>
<thead><tr><td>Table head section</td></tr></thead>
<tbody><tr><td>Table body section</td></tr></tbody>
</table>

I get:

<thead></thead>
<table>
<tr><td>Table head section</td></tr>
<tbody><tr><td>Table body section</td></tr></tbody>
</table>

Regards.
(issue imported from #M16168)

Actions #1

Updated by Stanislas Rolland over 13 years ago

What configuration do you have in TS setup for lib.parseFunc_RTE ?

Actions #2

Updated by Matthew over 13 years ago

Shyly I reply with...

  1. === Output parsing ===
    lib.stdheader >
    lib.parseFunc.nonTypoTagStdWrap >
    lib.parseFunc.tags.link.typolink.target >
    lib.parseFunc.allowTags = table, tbody, tr, th, td, col, h1, h2, h3, h4, h5, h6, div, p, br, font, span, ul, ol, li, pre, blockquote, strong, em, b, i, u, sub, sup, strike, a, link, img, nobr, hr, tt, q, cite, abbr, acronym, address, object, embed, param, map, area
    lib.parseFunc_RTE >
    lib.parseFunc_RTE < lib.parseFunc
Actions #3

Updated by Stanislas Rolland over 13 years ago

Remove the last two lines and the thead element will be rendered correctly.

Actions #4

Updated by Administrator Admin over 13 years ago

I had the same problem,
found the following option:

RTE.default.proc.entryHTMLparser_db.tags {
thead.allowedAttribs = class, style
tfoot.allowedAttribs = class, style
}

...and thead is rendered correctly!

Actions #5

Updated by Stanislas Rolland over 13 years ago

@Iomedia: I don't think so. This is a FE-rendering configuration issue. You must have changed something else.

Actions #6

Updated by Administrator Admin over 13 years ago

It may sound silly to you,
I didn't change anything else except this lines and it rendered correctly.

I would be glad if there would be a more logical solution.

Maybe you can test it yourself ?
Or someone else maybe ?

Actions #7

Updated by Stanislas Rolland over 13 years ago

I can reproduce this issue only by using the TS setup reported by Matthew.

Using the default proc options and default lib.parseFunc_RTE, the issue does not arise.

Actions #8

Updated by Administrator Admin over 13 years ago

At last I found the error:

I had to allow <thead> explicitly in "allowTags ="
Fine, now it is working correctly.
Thanks for your answers.

btw, I tried to set "allowTags = * ",

it doesn't work as in "showButtons = * " ???

Actions #9

Updated by Stanislas Rolland over 13 years ago

thead is included in the default configuration
RTE.default.proc.allowTags and
RTE.default.proc.entryHTMLparser_db.allowTags

If you need to modify these lists, I would recommend that you do it by difference with
RTE.default.proc.allowTags := addToList(tagName) or
RTE.default.proc.allowTags := removeFromList(tagName)

and

RTE.default.proc.entryHTMLparser_db.allowTags := addToList(tagName) or
RTE.default.proc.entryHTMLparser_db.allowTags := removeFromList(tagName)

Actions #10

Updated by Administrator Admin over 13 years ago

I understand now, thanks a lot!

Actions #11

Updated by Stanislas Rolland over 13 years ago

There isn't any bug here, only mis-configurations.

I am therefore closing the issue.

Actions

Also available in: Atom PDF