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

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

bug#50539: Don't use comment colors in HTML textareas


From: Lars Ingebrigtsen
Subject: bug#50539: Don't use comment colors in HTML textareas
Date: Mon, 13 Sep 2021 10:10:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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 via email to

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