[wp-trac] [WordPress Trac] #5577: Switching between HTML and visiual views destroys some table markup

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 4 00:41:00 GMT 2008


#5577: Switching between HTML and visiual views destroys some table markup
----------------------+-----------------------------------------------------
 Reporter:  mdawaffe  |       Owner:  anonymous
     Type:  defect    |      Status:  new      
 Priority:  normal    |   Milestone:  2.5      
Component:  General   |     Version:           
 Severity:  normal    |    Keywords:  JS       
----------------------+-----------------------------------------------------
 To reproduce:

  1. Enter the following into HTML view (formerly known as "Code view").
 {{{
 <table border="1" width="100%">
         <tr>
                 <th align="center">Centered</th>
                 <th>Heading 1</th>
                 <th>Heading 2</th>
         </tr>

         <tr bgcolor="#cccccc">
                 <td><b>Bold</b></td>
                 <td>Foo</td>
                 <td>Bar</td>
         </tr>
 </table>
 }}}

  2. Switch to Visual view.
  3. Switch back to HTML view.
  4. Notice that the second TR is gone.

 This is caused by a bad regex in the JS that converts between the two
 views.

 Patch attached.

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


More information about the wp-trac mailing list