Opened 15 years ago
Closed 15 years ago
#5577 closed defect (bug) (fixed)
Switching between HTML and visiual views destroys some table markup
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | JS has-patch commit |
Focuses: | Cc: |
Description
To reproduce:
- 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>
- Switch to Visual view.
- Switch back to HTML view.
- 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.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
(In [6547]) Don't bust table markup when switching between visual and html. Props mdawaffe. fixes #5577