From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#50539: Don't use comment colors in HTML textareas Date: Sun, 12 Sep 2021 20:55:28 +0200 Message-ID: <87k0jlk4in.fsf@gnus.org> References: <87pmtejpbm.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20834"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 50539@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 12 20:56:16 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mPUeF-0005GR-Uk for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Sep 2021 20:56:15 +0200 Original-Received: from localhost ([::1]:40614 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPUeE-0001Un-RD for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Sep 2021 14:56:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34306) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPUe2-0001Th-IO for bug-gnu-emacs@gnu.org; Sun, 12 Sep 2021 14:56:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60244) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mPUe2-0003jx-BE for bug-gnu-emacs@gnu.org; Sun, 12 Sep 2021 14:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mPUe2-0006Mw-7R for bug-gnu-emacs@gnu.org; Sun, 12 Sep 2021 14:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Sep 2021 18:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50539 X-GNU-PR-Package: emacs Original-Received: via spool by 50539-submit@debbugs.gnu.org id=B50539.163147294124431 (code B ref 50539); Sun, 12 Sep 2021 18:56:02 +0000 Original-Received: (at 50539) by debbugs.gnu.org; 12 Sep 2021 18:55:41 +0000 Original-Received: from localhost ([127.0.0.1]:43554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mPUdh-0006Ly-Bl for submit@debbugs.gnu.org; Sun, 12 Sep 2021 14:55:41 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:49388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mPUde-0006Lc-86 for 50539@debbugs.gnu.org; Sun, 12 Sep 2021 14:55:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=2214zP0znfEGYinWSHs5i38nXkxhutoEFlyIJV1lSNo=; b=V8j45L1Nku59SkPueRNASSHUIR 3HCX8zKM9uYsAYs2EK1Sbx9s/2hj98XKJMwk4chxSfOYRQTEM2u+tdMroH5aDXDptDdYQs5/f44/I 5XxFAm+jty4tzsQL2dYt29q1M0aKbHkOkEW6vuBiXmnLGcQVXNE/WryOBeGMv1S0eBkI=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mPUdV-0007GF-0K; Sun, 12 Sep 2021 20:55:31 +0200 In-Reply-To: <87pmtejpbm.5.fsf@jidanni.org> ("=?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson"'s message of "Sun, 12 Sep 2021 14:11:25 +0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:214155 Archived-At: =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > Here emacs misleads the user via comment color, > into thinking that the so-called comment is still > a comment in an HTML textarea: > > $ emacs some.html >
>

> >

>
> > When in fact it gets rendered by browsers. It gets rendered, but I'm not sure what the actual definition here is. https://www.w3.org/TR/html401/interact/forms.html#h-17.7 says that the contents of But browsers use pretty sloppy parsers, and does a lot of DWIM. libxml2 does parse that as a textarea containing a comment. I spent a couple minutes to say whether there's any standard that says whether