Bug #14738
closedhardcoded <p> tags inside table cels
0%
Description
All content inside a tabel is embedded in <p> tags. If the content of the table cel starts with <div ...>, that first div is replaced with a <p ...> .
It's not possible to have clean HTML output.
This code inside an editor (RTE of htmlarea RTE or RTE disabled):
<table cellspacing="10" cellpadding="1" border="0" >
<tbody>
<tr>
<td>
<div style="text-align: center;"><span style="font-weight:bold;">VOOR</span><br/>
</div>
<div style="text-align: center;">
</div>
</td>
</tr>
</tbody>
</table>
results in this on the web page:
<table cellspacing="10" cellpadding="1" border="0" class="contenttable">
<tbody>
<tr >
<td >
<p style="text-align: center;"><span style="font-weight: bold;">VOOR</span><br/>
</div>
<div style="text-align: center;"></p>
</td>
</tr>
</tbody>
</table>
The first <div ...> is suddenly a <p ...>. A </p> is added at the end
of the table.
(issue imported from #M1081)
Files
Updated by Oliver Klee over 19 years ago
Is this a dupe of bug 0000131 (or related to it)?
BTW, I've written an extension as a workaround: http://typo3.org/extensions/repository/new/tableswithoutp/
Updated by Pieter over 19 years ago
I did post this bug under [- TYPO3 Core -] because I still have the same problem without css_styled_content installed (using the static template 'GREEN' to test this). Did some tests without any RTE installed with the same result: <div ...> turns into <p ...> on the website.
Updated by Oliver Klee over 19 years ago
Now my extension removes P tags from tables within regular text content, too.
Updated by Sebastian Kurfuerst about 19 years ago
which extensions do you use @Pieter ? It looks like we have two different issues here. One is that there is an empty p-tag in CSS-styled-content -tables.
I will provide a fix for this one, but I am not sure why the div is converted to p. To get rid of this bug, I need some more information..
- which extensions do you have installed which modify frontend output behavior?(css_styled_imgtext, ...)
- can you post all your xclasses? you can find them in tools->configuration->TYPO3_CONF_VARS->FE->XCLASS
- please post what you can find in TYPO3_CONF_VARS->EXTCONF->css_styled_content (in the configuration module as well)
Greets, Sebastian
Updated by Sebastian Kurfuerst about 19 years ago
The patch removes the <p > -Tags in <td> from CSS-Styled-Content. If you need this anyways, insert the following line to your TypoScript Setup:
tt_content.table.20.innerStdWrap.wrap = < p >|< /p>
CHANGELOG:
By default, there are no <p>-Tags inside <td>-Tags anymore. If you need this, activate it again with
tt_content.table.20.innerStdWrap.wrap = < p >|< /p>
Updated by Sebastian Kurfuerst almost 19 years ago
resolved in CVS by a big change in CSC and an update wizard.