Bug #23869
closedIncorrect FE rendering of thead element in RTE content in v4.4.4 & v2.0.5
0%
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)
Updated by Stanislas Rolland about 14 years ago
What configuration do you have in TS setup for lib.parseFunc_RTE ?
Updated by Matthew about 14 years ago
Shyly I reply with...
- === 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
Updated by Stanislas Rolland about 14 years ago
Remove the last two lines and the thead element will be rendered correctly.
Updated by Administrator Admin about 14 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!
Updated by Stanislas Rolland about 14 years ago
@Iomedia: I don't think so. This is a FE-rendering configuration issue. You must have changed something else.
Updated by Administrator Admin about 14 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 ?
Updated by Stanislas Rolland about 14 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.
Updated by Administrator Admin about 14 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 = * " ???
Updated by Stanislas Rolland about 14 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)
Updated by Administrator Admin about 14 years ago
I understand now, thanks a lot!
Updated by Stanislas Rolland about 14 years ago
There isn't any bug here, only mis-configurations.
I am therefore closing the issue.