Subject: Re: bug#24893: 26.0.50; shr doesn't parse srcset <img> correctly

From: Katsumi Yamaoka <[email-masked]>
Date: Wed, 09 Nov 2016 10:16:44 +0900

On Tue, 08 Nov 2016 09:39:46 +0100, Andreas Schwab wrote:
> On Nov 08 2016, Katsumi Yamaoka <[email-masked]> wrote:
>> -                     (let ((spec (split-string elem " ")))
>> +                     (let ((spec (split-string elem "[\t\n ]+")))

> Shouldn't this ignore leading and trailing whitespace as well?

It's done by the second part?

-                   (split-string srcset ", "))
+                   (split-string (replace-regexp-in-string
+				  "\\`[\t\n ]+\\|[\t\n ]+\\'" "" srcset)
+				 "[\t\n ]*,[\t\n ]*"))