Subject: bug#45355: 26.1; shr-tag-base doesn't handle <base href=""> properly

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 22 Dec 2020 07:47:54 +0100

Łukasz Stelmach <[email-masked]> writes:

> For what it's worth, W3C HTML Validator claims that a document with an
> empty string in the href attribute of a base tag
>
>     <base href="">
>
> is valid. I found such document recently in my INBOX and Gnus was unable
> to display it correctly because the second string-match in
> shr-parse-base breaks when local is nil. My solution is not to call
> shr-parse-base not only when href is not present but also when href is
> an empty string.
>
> The patch has been crated on the current master branch.

Looks good to me; I've now applied it to Emacs 28.

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