Ticket #7846 (closed bug: invalid)
Inserting HTML content with table rows not being the first tag fails
|Reported by:||frederic@…||Owned by:|
Inside the clean() function, you wrap the inserted code with table and tbody tags to "protect" table rows from the browser when going to html and back. This works only if the first tag of the inserted content is indeed a "<tr" (or a td or a col).
But if there is any other tag before (like a script or CSS info in my case), then there is no such "protection", and the whole content gets messed up by the browser.