unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Gregory Heytings <gregory@heytings.org>
Cc: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>, 50539@debbugs.gnu.org
Subject: bug#50539: Don't use comment colors in HTML textareas
Date: Mon, 13 Sep 2021 10:10:56 +0200	[thread overview]
Message-ID: <87zgsghp4f.fsf@gnus.org> (raw)
In-Reply-To: <0d48a230844bcb6df7d1@heytings.org> (Gregory Heytings's message of "Sun, 12 Sep 2021 22:05:08 +0000")

Gregory Heytings <gregory@heytings.org> writes:

>> I spent a couple minutes to say whether there's any standard that
>> says whether <!-- comments are allowed in PCDATA or not, but I'd
>> assume so. Does anybody know for sure?
>
> I'm not absolutely sure, but AFAIK all HTML tags are rendered as is in
> a text area, not only <!-- comments.

Firefox does that:

<textarea>
<p>
</textarea>

But not for

<textarea>
</textarea>
</textarea>

:-)

But, like I said, the contents here are defined to be PCDATA, so this is
just Firefox (and probably Chrome, too) just being generous and trying
to interpret as they guess the writer intended.

HTML-mode also highlights the <p> as if it's a tag...  which it is,
even if Firefox doesn't interpret it as such.

So I think, on the whole, that html-mode does everything correctly here,
and I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





      reply	other threads:[~2021-09-13  8:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-12  6:11 bug#50539: Don't use comment colors in HTML textareas 積丹尼 Dan Jacobson
2021-09-12 18:55 ` Lars Ingebrigtsen
2021-09-12 22:05   ` Gregory Heytings
2021-09-13  8:10     ` Lars Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zgsghp4f.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=50539@debbugs.gnu.org \
    --cc=gregory@heytings.org \
    --cc=jidanni@jidanni.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).