Closed
Bug 1165209
Opened 10 years ago
Closed 10 years ago
Thunderbird strips or ignores Doctype
Categories
(Thunderbird :: Untriaged, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 335499
People
(Reporter: info, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36
Steps to reproduce:
Send the following source code to Thunderbird:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tbody>
<tr>
<td align="right" bgcolor="#ff00ff" style="background-color:#ff00ff;padding-top:50px;padding-right:20px;padding-bottom:50px;padding-left:0px;height:100px;" height="100" valign="top">
Text
</td>
</tr>
</tbody>
</table>
</body>
</html>
Actual results:
The Doctype must have been removed or ignored, since the height of the td is not calculated correctly (should be 200px = 50px padding-bottom + 50px padding-top + 100px height). Instead the height of the td is about 118px (100px height + 18px line-height).
Thunderbird should be using box-sizing: content-box; like when you paste the source code in Firefox.
Expected results:
The height of the td should have been 200px = 50px padding-bottom + 50px padding-top + 100px height.
Note: Easy to reproduce in Firefox as well when removing the Doctype.
Comment 1•10 years ago
|
||
Yes, not as easy to fix as one would naively expect.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Hello Magnus,
actually, I think it would be quite easy to solve if you would take an approach like Gmail or Hotmail(see here: http://www.emailonacid.com/blog/details/C13/doctype_-_the_black_sheep_of_html_email_design).
1. Look for Doctype and remove it if it exists
2. Add a specific Doctype (e.g. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">)
This way, Thunderbird will always use the same Doctype and it's much easier to design an email for Thunderbird.
Any Doctype is better than Quirks mode even if that means replacing the original Doctype.
Flags: needinfo?(mkmelin+mozilla)
Comment 3•10 years ago
|
||
Yes, but unfortunately while it *sounds* easy, that + what related fixes it needs is non-trivial.
Flags: needinfo?(mkmelin+mozilla)
You need to log in
before you can comment on or make changes to this bug.
Description
•