Closed Bug 1678724 Opened 4 years ago Closed 4 years ago

HTML structure is break when quoting HTML email with HTML comments in CSS elements

Categories

(Thunderbird :: Untriaged, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1675507

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>

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Regressed by: 1530106
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.