by yoopits » Fri Jan 01, 2010 10:21 pm
I narrowed down the problem that I reported in the previous message. It seems there is a problem in Poco's HTML formatter (renderer). Here is some sample HTML code that illustrates it:
<table align="left">
<tr><td>abc</td></tr>
</table>
<table style="clear:both;">
<tr><td>xyz</td></tr>
</table>
The first table, with align="left", apparently makes the table float left. Then, in order for the second table to appear below the first (rather than trying to wrap around it), the second table needs "clear:both".
The Paypal message mentioned in my first message contains two tables containing "align" and "style" attributes like in my example. IE and Firefox both treat the above HTML, with align=left and clear:both, just as I described them above -- that's why the Paypal message looks ok in my browser.
As for Pocomail, it's HTML formatter DOES treat the first table as floating, but it doesn't recognize the second table's "clear:both", so the second table ends up at the right of the first, trying to wrap around it. In the message I received from PayPal, the second table contains the order detail lines, which are pushed far to the right, where all but the first letters are completely cut off.
Personally, I think PayPal should just avoid using this crazy HTML behavior. But Pocomail should also fix its HTML formatter.