bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#43511: 27.1; [PATCH] Files with lowercase doctype are not in mhtml-m


From: Daniel Martín
Subject: bug#43511: 27.1; [PATCH] Files with lowercase doctype are not in mhtml-mode by default
Date: Sat, 19 Sep 2020 16:35:14 +0200

This is a regression caused by the fix for bug 36401.

Steps to reproduce:

emacs -Q
M-x browse-url-emacs RET https://www.gnu.org/software/emacs/ RET

Expected results:

The HTML contents of the Emacs website are shown, and the buffer is in
mhtml-mode.

Actual results:

The HTML contents of the Emacs website are shown, but the buffer is in
fundamental-mode.

The proposed solution to accomodate both wanted behaviors is to extend
the regular expression to cover a "DOCTYPE" in a case-insensitive
way. The standard says that's also supported:
https://html.spec.whatwg.org/multipage/syntax.html#the-doctype

I've attached a patch with the proposed solution, on top of
emacs-27. Let me know if you'd want to apply it on top of master
instead.

Thanks.

Attachment: 0001-Put-files-in-mhtml-mode-when-they-have-DOCTYPE-case-.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]