emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] shr.el: correct SVG attribute case


From: Manuel Giraud
Subject: Re: [PATCH] shr.el: correct SVG attribute case
Date: Mon, 29 Jan 2024 22:20:31 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Sacha Chua <sacha@sachachua.com> writes:

> Hello, Manuel, all!
>
> On Sat, Jan 27, 2024, 12:18 Manuel Giraud <manuel@ledu-giraud.fr> wrote:
>
>> FWIW, it seems that 'libxml-parse-xml-region' seems to do the right
>> thing.
>>
>
> Yes, libxml-parse-xml-region preserves case. I think shr uses
> libxml-parse-html-region to try to be more forgiving of real-world HTML,
> though, as documented in
> https://www.gnu.org/software/emacs/manual/html_node/elisp/Parsing-HTML_002fXML.html

Hi Sacha,

I have looked a bit at libxml2 and it seems that the XML and HTML parser
are really two differents parsers.  And the HTML one unconditionally
does lower case tags ('htmlParseHTMLName' in HTMLparser.c).  My idea was
to see if it was possible to have an option for this but it's not the
case for the HTML parser.

So I think your patch with a correspondence table is the correct one
here.
-- 
Manuel Giraud



reply via email to

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