GNU bug report logs - #43373
28.0.50; Regression: Unrecognized style region in mhtml-mode

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Simen Heggestøyl <simenheg@HIDDEN>; Keywords: confirmed; dated Sun, 13 Sep 2020 11:33:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Sep 2020 11:32:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 13 07:32:32 2020
Received: from localhost ([127.0.0.1]:49584 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kHQFE-00038z-6J
	for submit <at> debbugs.gnu.org; Sun, 13 Sep 2020 07:32:32 -0400
Received: from lists.gnu.org ([209.51.188.17]:47112)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <simenheg@HIDDEN>) id 1kHQFC-00037n-PP
 for submit <at> debbugs.gnu.org; Sun, 13 Sep 2020 07:32:31 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:40124)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <simenheg@HIDDEN>)
 id 1kHQFB-0006Tx-5b
 for bug-gnu-emacs@HIDDEN; Sun, 13 Sep 2020 07:32:30 -0400
Received: from aibo.runbox.com ([91.220.196.211]:44454)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <simenheg@HIDDEN>)
 id 1kHQF6-0002td-OA
 for bug-gnu-emacs@HIDDEN; Sun, 13 Sep 2020 07:32:28 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; 
 s=selector2;
 h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; 
 bh=UlTwMHOOicluMDFlLNwZXxTZGPxd8alCCN57vtQ0Ipk=; b=MSCeSBBJHBlS5OAns8YwN5lJT
 BucNyMzBJO7aE47YmYirTVcf1dz7EnfiBdukuFaU3Ig7B9IYV5JxkiqgLxxc708BgEyMbdhRpAHWn
 uHKcgIV1f7511Jeefi1jyCj2YVhCJD+b0x/gh7NCHyM0WatQlpK+U3bWsO8ZIv6Hh0vLe80DENUal
 Vvbtd4C7+SeDAjlW8O2N9PEfyBfxb1s7jIQxXHdjKcU/LSHWH8cId/YlnZMuJkp9hBJ8bpoKv8ZO9
 mG/Io6ztq/Hci7iFTTAe2Dgc40+vFGiIRChTWLNvTwAwUrs7oSE5ftkhUjFcrEQRzSjDRj5vFniiZ
 hk4aUH+xA==;
Received: from [10.9.9.72] (helo=submission01.runbox)
 by mailtransmit03.runbox with esmtp (Exim 4.86_2)
 (envelope-from <simenheg@HIDDEN>) id 1kHQF0-0006YW-Ep
 for bug-gnu-emacs@HIDDEN; Sun, 13 Sep 2020 13:32:18 +0200
Received: by submission01.runbox with esmtpsa [Authenticated alias (963757)]
 (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1)
 id 1kHQEv-0006i3-8e
 for bug-gnu-emacs@HIDDEN; Sun, 13 Sep 2020 13:32:13 +0200
From: =?utf-8?Q?Simen_Heggest=C3=B8yl?= <simenheg@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 28.0.50; Regression: Unrecognized style region in mhtml-mode
Date: Sun, 13 Sep 2020 13:32:12 +0200
Message-ID: <87sgbllxoj.fsf@simenheg@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Received-SPF: pass client-ip=91.220.196.211; envelope-from=simenheg@HIDDEN;
 helo=aibo.runbox.com
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/13 07:32:18
X-ACL-Warn: Detected OS   = ???
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HTML_MESSAGE=0.001, MSGID_MULTIPLE_AT=1, RCVD_IN_DNSWL_LOW=-0.7,
 RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_HTML_ATTACH=0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.6 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  The following bug is a regression since 27.1 introduced on
 master by commit eae028b9e2c23f84dbd130d49da65f9db1db932f (found by
 bisection).
 To reproduce, open the attached file 'mhtml-test.html' from 'emacs -Q'. The
 region from position 516 to 558 (approximately the "button {cursor: pointer;
 }" part) is not recognized as being part of the [...] 
 Content analysis details:   (1.6 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 1.0 MSGID_MULTIPLE_AT      Message-ID contains multiple '@' characters
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (simenheg[at]runbox.com)
 0.9 SPF_FAIL               SPF: sender does not match SPF record (fail)
 [SPF failed: Please see http://www.openspf.org/Why?s=mfrom;
 id=simenheg%40runbox.com; ip=209.51.188.17; r=debbugs.gnu.org]
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 HTML_MESSAGE           BODY: HTML included in message
 -0.0 RCVD_IN_MSPIKE_H4      RBL: Very Good reputation (+4)
 [209.51.188.17 listed in wl.mailspike.net]
 -2.3 RCVD_IN_DNSWL_MED      RBL: Sender listed at https://www.dnswl.org/,
 medium trust [209.51.188.17 listed in list.dnswl.org]
 -0.0 RCVD_IN_MSPIKE_WL      Mailspike good senders
 0.0 T_HTML_ATTACH          HTML attachment to bypass scanning?
 2.0 SPOOFED_FREEMAIL       No description available.
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.4 (-)

--=-=-=
Content-Type: text/plain

The following bug is a regression since 27.1 introduced on master by
commit eae028b9e2c23f84dbd130d49da65f9db1db932f (found by bisection).

To reproduce, open the attached file 'mhtml-test.html' from
'emacs -Q'. The region from position 516 to 558 (approximately the
"button {cursor: pointer; }" part) is not recognized as being part of
the style block, and doesn't receive the correct mode (HTML+CSS).

--=-=-=
Content-Type: text/html
Content-Disposition: inline; filename=mhtml-test.html

<template>
  <!DOCTYPE html>
  <html lang="en">
    <head>
      <meta charset="utf-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <title></title>
    </head>
    <body>
      <div id="app">test</div>
    </body>
  </html>
</template>

<script>
  console.log('test');
</script>

<style lang="css">
  body {
      text-align: center;
  }
  #app {
      margin: 0;
  }
  a {
      font-size: 20px;
      padding: 10px;
  }
  button {
      cursor: pointer;
  }
</style>

--=-=-=
Content-Type: text/plain

-- Simen

--=-=-=--




Acknowledgement sent to Simen Heggestøyl <simenheg@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#43373; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 13 Sep 2020 13:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.