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: Eli Zaretskii
Subject: Re: [PATCH] shr.el: correct SVG attribute case
Date: Thu, 01 Feb 2024 12:02:57 +0200

> From: Sacha Chua <sacha@sachachua.com>
> Date: Fri, 26 Jan 2024 09:15:15 -0500
> 
> I've attached a patch for restoring the correct case of SVG attributes
> parsed with libxml-parse-html-region when displayed with shr, so that
> SVGs can be displayed properly. HTML attributes are case-insensitive and
> converted to lowercase, but SVG attributes are case-sensitive, so things
> like viewBox don't work if they're lowercased. It looks like other
> implementations (ex: https://github.com/w3c/svgwg/issues/161 ) also use
> the workaround of fixing attribute cases for SVGs, so I took the list
> from
> https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inforeign
> and fixed those attributes.

Thanks, installed on the master branch.

Please in the future post patches to the bug tracker (using
"M-x submit-emacs-patch"), so that the discussion could be
more easily discovered if needed in the future.



reply via email to

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