[wp-trac] [WordPress Trac] #3492: Visual Rich Editor wipes out table rows where a CSS class is specified

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 21 23:33:15 GMT 2006


#3492: Visual Rich Editor wipes out table rows where a CSS class is specified
----------------------------+-----------------------------------------------
 Reporter:  figcar          |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:  2.2      
Component:  Administration  |     Version:           
 Severity:  normal          |    Keywords:           
----------------------------+-----------------------------------------------
 To replicate nasty bug behavior:

 1. Create a WP Page or Post with the following table code:
 <table>
 <tr><td>First row</td></tr>
 <tr class="even"><td>Second row</td></tr>
 <tr><td>Third row</td></tr>
 <tr class="even"><td>Fourth row</td></tr>
 <tr><td>Fifth row</td></tr>
 </table>

 2. With Visual Rich Editor (VRE) enabled, open the page for editing. Wait
 for VRE to load... Don't change anything. Just click "Save".

 3. VRE seems to cause the rows with a class specified -- and all their
 data -- to be removed (poof!), leaving this:
 <table>
 <tr><td>First row</td></tr>
 <tr><td>Third row</td></tr>
 <tr><td>Fifth row</td></tr>
 </table>

 Use case: I'll often use a class on table rows for applying background
 color (from the stylesheet) to alternate rows for tabular data.

 I've observed this VRE behavior on both Mac/Firefox and WinXP/IE6.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3492>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list