[Tickets #4075] RESOLVED: HTML Message body display mangled

bugs@bugs.horde.org bugs at bugs.horde.org
Sat Jun 24 12:20:14 PDT 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=4075
-----------------------------------------------------------------------
 Ticket             | 4075
 Updated By         | Michael Slusarz <slusarz at horde.org>
 Summary            | HTML Message body display mangled
 Queue              | IMP
 Version            | 4.1.2
 State              | Bogus
 Priority           | 1. Low
 Type               | Bug
 Owners             | Michael Slusarz
-----------------------------------------------------------------------


Michael Slusarz <slusarz at horde.org> (2006-06-24 12:20) wrote:

> Fair enough.. but just a question, does it mean that thunderbird 
> sanitizes html tags before displaying the message body?

Probably not (I don't know for sure).  But it probably has more to do with
the way thunderbird renders the body compared to us.  Thunderbird runs on a
native code in the OS the user is using.  Most likely, there is a separate
"view" that can be created just for the message text area.  Thus, in the
present case, the existence of extra "TD" tags won't do anything (i.e. they
will be ignored) in this environment.

IMP, on the other hand, must render HTML message data *within* other HTML
message data.  So doing things like throwing in extra table rows or having
unbalance div tags, etc. etc. could potentially cause the entire page to
render strangely if these unbalanced/unexpected tags interfere with the way
we render the rest of the page.  Obviously there is nothing we can do about
this and is the reason we provide the user a link to view the content on a
completely separate page, where we can guarantee that there will be no HTML
displayed on the page except for what appears in the message.

FWIW, the experimental 'tidy' support I just added to IMP HEAD made your
error message render much better - the only issue is that line with the
extra TD's appears at the very bottom - but at least the link for "Show HTML
in a new window" appears at the top of the section where it belongs.




More information about the bugs mailing list