نعم! أحصل على نفس السلوك.
ومن الناحية الدقيقة، لا يُعدّ هذا خطأ. ففايرفوكس ينسخ HTML كما طُلب منه تمامًا:
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<p dir="auto">عندما نسخت ما يلي من منصة ديسكورش إلى عميل البريد الإلكتروني الخاص بي:</p>
<pre data-code-wrap="diff" dir="auto" class="codeblock-buttons">
<div class="codeblock-button-wrapper" style="right: 0px;"></div>
<code class="lang-diff hljs language-diff" data-highlighted="yes">
<span class="hljs-meta">@@ -1,11 +1,11 @@</span>
<span class="hljs-deletion">-Young volunteer award – celebrating young volunteers, aged 16-24, who go the extra mile in their local communities, demonstrating our values and the importance of connection and action.</span>
<span class="hljs-addition">+The Young Volunteer Award celebrates young volunteers, aged 16–24, who go the extra mile in their local communities, demonstrating our values and the importance of connection and action.</span>
</code>
</pre>
الاختلاف الناتج بعد اللصق يعود إلى أن كروميوم يقوم بتضمين الأنماط (inline styles) بينما لا يفعل فايرفوكس ذلك. وتبسيط الأمر إلى سطر واحد يسلط الضوء[1] على ما يحدث:
<span
class="hljs-deletion">
-Young volunteer award – celebrating young volunteers, aged 16-24, who go the extra mile in their local communities, demonstrating our values and the importance of connection and action.
</span>
<span
class="hljs-deletion"
style="background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 224, 224); color: rgb(192, 45, 46);">
-Young volunteer award – celebrating young volunteers, aged 16-24, who go the extra mile in their local communities, demonstrating our values and the importance of connection and action.
</span>
(تم إضافة فواصل أسطر)
كروميوم يقوم بتضمين النمط style="background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 224, 224); color: rgb(192, 45, 46);" من class="hljs-deletion" إلى عنصر span، لأن ما يتم لصقه فيه على الأرجح لا يحتوي على هذا النمط.
هاها ↩︎