unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Manuel Giraud via "Emacs development discussions." <emacs-devel@gnu.org>
To: Sacha Chua <sacha@sachachua.com>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] shr.el: correct SVG attribute case
Date: Mon, 29 Jan 2024 22:20:31 +0100	[thread overview]
Message-ID: <87le87u99c.fsf@ledu-giraud.fr> (raw)
In-Reply-To: <CAJGZZeLUU5fFLx53oYO+xsUwsP_UtPTocCqgSGk6hfpaU-En5A@mail.gmail.com> (Sacha Chua's message of "Sat, 27 Jan 2024 12:29:37 -0500")

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	other threads:[~2024-01-29 21:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-26 14:15 [PATCH] shr.el: correct SVG attribute case Sacha Chua
2024-01-27 17:18 ` Manuel Giraud via Emacs development discussions.
2024-01-27 17:29   ` Sacha Chua
2024-01-29 21:20     ` Manuel Giraud via Emacs development discussions. [this message]
2024-02-01 10:02 ` Eli Zaretskii

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=87le87u99c.fsf@ledu-giraud.fr \
    --to=emacs-devel@gnu.org \
    --cc=manuel@ledu-giraud.fr \
    --cc=sacha@sachachua.com \
    /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).