HTML structure is break when quoting HTML email with HTML comments in CSS elements
Categories
(Thunderbird :: Untriaged, defect)
Tracking
(Not tracked)
People
(Reporter: note6673, Unassigned)
References
(Regression)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0
Steps to reproduce:
Reply by quoting the received HTML email that contains HTML comments in the CSS element at the Thunderbird 78.5.0 (Not reproduced in 68.12.0).
Recieved Source:
Subject: TEST
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
<!--
p {color: red;}
-->
</style>
</head>
<body>
<p>DUMMY TEXT</p>
</body>
</html>
Actual results:
The comment end tag "-->" is removed. As the Result, the quoted part can be displayed in TB, but may not in other mailers (ex. Windows Live Mail).
Send Source (TB 78):
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
<br>
<div class="moz-cite-prefix">On 2020/11/21 4:58, wrote:<br>
</div>
<blockquote type="cite" cite="mid:md5:VSw3VokyVvPJWsG2B8DvWg==">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
<!--
p {color: red;}</style>
<p>DUMMY TEXT</p>
</blockquote>
<br>
</body>
</html>
Expected results:
It must quote without removing the comment end tag "->".
Send Source (TB 68):
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">On 2020/11/21 4:58, wrote:<br>
</div>
<blockquote type="cite" cite="mid:md5:QOXhYL+rlSLe9axqpXKPDQ==">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
<!--
p {color: red;}
-->
</style>
<p>DUMMY TEXT</p>
</blockquote>
</body>
</html>
Description
•