I found ew=
w fails to show card-images which is described in the following web page:=
div>
I modified shr.el a little bit to support &q=
uot;data-src" attribute, so eww can display card-images properly.
=C2=A0Hope it helps.
--000000000000c9858b05c62d8f01--
--000000000000c9858d05c62d8f03
Content-Type: text/x-patch; charset="US-ASCII";
name="0001-Add-support-for-data-src-attribute-in-img-tag.patch"
Content-Disposition: attachment;
filename="0001-Add-support-for-data-src-attribute-in-img-tag.patch"
Content-Transfer-Encoding: base64
Content-ID:
X-Attachment-Id: f_kqn20pyd0
RnJvbSBiYjc1MzdmMThhZjM0OGUyNzE2OWZkYjQ2NzUyNzlhNmFjOTM2ZjkxIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiB5YW5neWluZ2NoYW8gPHlhbmd5aW5nY2hhb0BpY2xvdWQuY29t
PgpEYXRlOiBGcmksIDIgSnVsIDIwMjEgMTE6NDY6MTIgKzA4MDAKU3ViamVjdDogW1BBVENIXSBB
ZGQgc3VwcG9ydCBmb3IgImRhdGEtc3JjIiBhdHRyaWJ1dGUgaW4gPGltZz4gdGFnLgoKKiBsaXNw
L25ldC9zaHIuZWwgKHNoci0tcHJlZmVycmVkLWltYWdlKSAoc2hyLXRhZy1pbWcpOiBzdXBwb3J0
CiAgImRhdGEtc3JjIiAgYXR0cmlidXRlCi0tLQogbGlzcC9uZXQvc2hyLmVsIHwgNSArKystLQog
MSBmaWxlIGNoYW5nZWQsIDMgaW5zZXJ0aW9ucygrKSwgMiBkZWxldGlvbnMoLSkKCmRpZmYgLS1n
aXQgYS9saXNwL25ldC9zaHIuZWwgYi9saXNwL25ldC9zaHIuZWwKaW5kZXggODczZjA0NTdlMy4u
Y2MyMDA3YjJhNCAxMDA2NDQKLS0tIGEvbGlzcC9uZXQvc2hyLmVsCisrKyBiL2xpc3AvbmV0L3No
ci5lbApAQCAtMTY2MSw3ICsxNjYxLDggQEAgc2hyLXRhZy1pbWcKICAgKHdoZW4gKG9yIHVybAog
CSAgICAoYW5kIGRvbQogCQkgKG9yICg+IChsZW5ndGggKGRvbS1hdHRyIGRvbSAnc3JjKSkgMCkK
LSAgICAgICAgICAgICAgICAgICAgICg+IChsZW5ndGggKGRvbS1hdHRyIGRvbSAnc3Jjc2V0KSkg
MCkpKSkKKyAgICAgICAgICAgICAgICAgICAgICg+IChsZW5ndGggKGRvbS1hdHRyIGRvbSAnc3Jj
c2V0KSkgMCkKKyAgICAgICAgICAgICAgICAgICAgICg+IChsZW5ndGggKGRvbS1hdHRyIGRvbSAn
ZGF0YS1zcmMpKSAwKSkpKQogICAgICh3aGVuICg+IChjdXJyZW50LWNvbHVtbikgMCkKICAgICAg
IChpbnNlcnQgIlxuIikpCiAgICAgKGxldCAoKGFsdCAoZG9tLWF0dHIgZG9tICdhbHQpKQpAQCAt
MTc5Myw3ICsxNzk0LDcgQEAgc2hyLS1wcmVmZXJyZWQtaW1hZ2UKICAgICAgICAgICAgICAgICAg
ICg+IChjYWRyIChjYXIgc3Jjc2V0KSkgZnJhbWUtd2lkdGgpKQogICAgICAgICAoc2V0cSBjYW5k
aWRhdGUgKGNhYXIgc3Jjc2V0KSkKICAgICAgICAgKHBvcCBzcmNzZXQpKSkKLSAgICAob3IgY2Fu
ZGlkYXRlIChkb20tYXR0ciBkb20gJ3NyYykpKSkKKyAgICAob3IgY2FuZGlkYXRlIChkb20tYXR0
ciBkb20gJ3NyYykgKGRvbS1hdHRyIGRvbSAnZGF0YS1zcmMpKSkpCiAKIChkZWZ1biBzaHItc3Ry
aW5nLW51bWJlciAoc3RyaW5nKQogICAoaWYgKG51bGwgc3RyaW5nKQotLSAKMi4zMS4xCgo=
--000000000000c9858d05c62d8f03--
From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 04 01:46:50 2021
Received: (at 49344) by debbugs.gnu.org; 4 Jul 2021 05:46:50 +0000
Received: from localhost ([127.0.0.1]:40318 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1lzuxu-0004sv-CJ
for submit@debbugs.gnu.org; Sun, 04 Jul 2021 01:46:50 -0400
Received: from smtp-1.orcon.net.nz ([60.234.4.34]:38417)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1lzuxr-0004sa-0h
for 49344@debbugs.gnu.org; Sun, 04 Jul 2021 01:46:49 -0400
Received: from [10.253.37.70] (port=42497 helo=webmail.orcon.net.nz)
by smtp-1.orcon.net.nz with esmtpa (Exim 4.90_1)
(envelope-from )
id 1lzuxn-0005K3-Nc; Sun, 04 Jul 2021 17:46:44 +1200
Received: from ip-116-251-162-85.kinect.net.nz ([116.251.162.85])
via [10.253.37.253] by webmail.orcon.net.nz
with HTTP (HTTP/1.1 POST); Sun, 04 Jul 2021 17:46:43 +1200
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8;
format=flowed
Content-Transfer-Encoding: 8bit
Date: Sun, 04 Jul 2021 17:46:43 +1200
From: Phil Sainty
To: =?UTF-8?Q?=E6=9D=A8=E8=8B=B1=E8=B6=85?=
Subject: Re: bug#49344: shr: Add support for "data-src" attribute in
nodes
In-Reply-To:
References:
Message-ID: <313d84e33a30dfc7b789ecbda17b88fa@webmail.orcon.net.nz>
X-Sender: psainty@orcon.net.nz
User-Agent: Orcon Webmail
X-GeoIP: --
X-Spam_score: -2.9
X-Spam_score_int: -28
X-Spam_bar: --
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 49344
Cc: 49344@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.7 (-)
On 2021-07-03 12:56, 杨英超 wrote:
> https://www.geeksforgeeks.org/why-card-images-use-data-src-not-src-for-image-in-bootstrap-4/
The meaning of any 'data-*' attribute is 100% application-defined.
I don't think that any web browsers should be assuming that a
'data-src' attribute is actually a 'src' attribute (that's not
any kind of standard AFAIK), nor implement workarounds for specific
web sites that are not generating sane HTML.
The initial markup should have a proper 'src' attribute. If the
site wants the initial state to be different in the presence of
Javascript, then it should be using Javascript to modify the
initial state accordingly, following a progressive-enhancement
approach.
As eww doesn't support Javascript, this particular case is only
one of many things which won't work when the site developers
make bad assumptions about Javascript. I would expect your
example to fail in any web browser where JS was disabled or
not supported.
E.g. for me, using Firefox, the site looks very similar in
Firefox and eww because I use the uMatrix extension to only
permit Javascript to run on sites where I have explicitly
allowed it. (Actually, the site looks *better* in eww, because
their code blocks in Firefox are barely readable on account
of the appallingly poor contrast between background and text.)
This is simply bad web design, and I don't think that's eww's
problem to solve.
-Phil
From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 04 09:55:49 2021
Received: (at 49344) by debbugs.gnu.org; 4 Jul 2021 13:55:49 +0000
Received: from localhost ([127.0.0.1]:42901 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1m02b7-000779-Ep
for submit@debbugs.gnu.org; Sun, 04 Jul 2021 09:55:49 -0400
Received: from quimby.gnus.org ([95.216.78.240]:47232)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1m02b5-00076w-J2
for 49344@debbugs.gnu.org; Sun, 04 Jul 2021 09:55:48 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
List-Subscribe:List-Post:List-Owner:List-Archive;
bh=nP9d1geYzcuNgKC9TseiL4CTeHQxerKv3tdK3EsbKFY=; b=jc4xBy1wT1AEcwOkqap5vq4bam
OldGPLYDSxPLIHNVYJD8mWRwpuzF8yueAKLhcfjmyeabGii0rP8+xmkPeq2wLeXX2NG/4D4SyLA7N
w/zI52eV4u8jWaCYCVDsq5Pxbor8jtcHsLP2clhzxH6bl/NwCXgTTMsM7DsVXy19i4iI=;
Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva)
by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.92) (envelope-from )
id 1m02aw-0000w3-3m; Sun, 04 Jul 2021 15:55:41 +0200
From: Lars Ingebrigtsen
To: Phil Sainty
Subject: Re: bug#49344: shr: Add support for "data-src" attribute in
nodes
References:
<313d84e33a30dfc7b789ecbda17b88fa@webmail.orcon.net.nz>
X-Now-Playing: Kissing the Pink's _Naked_: "The Last Film (Hymn version)"
Date: Sun, 04 Jul 2021 15:55:37 +0200
In-Reply-To: <313d84e33a30dfc7b789ecbda17b88fa@webmail.orcon.net.nz> (Phil
Sainty's message of "Sun, 04 Jul 2021 17:46:43 +1200")
Message-ID: <875yxq4206.fsf@gnus.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
@@CONTACT_ADDRESS@@ for details.
Content preview: Phil Sainty writes: > This is simply
bad web design, and I don't think that's eww's > problem to solve. Indeed,
so I'm closing this bug report.
Content analysis details: (-2.9 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 49344
Cc: =?utf-8?B?5p2o6Iux6LaF?= , 49344@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -3.3 (---)
Phil Sainty writes:
> This is simply bad web design, and I don't think that's eww's
> problem to solve.
Indeed, so I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 04 09:55:53 2021
Received: (at control) by debbugs.gnu.org; 4 Jul 2021 13:55:54 +0000
Received: from localhost ([127.0.0.1]:42904 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1m02bB-00077O-LJ
for submit@debbugs.gnu.org; Sun, 04 Jul 2021 09:55:53 -0400
Received: from quimby.gnus.org ([95.216.78.240]:47250)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1m02bA-000771-La
for control@debbugs.gnu.org; Sun, 04 Jul 2021 09:55:52 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc:
MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:
Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
:Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:
List-Subscribe:List-Post:List-Owner:List-Archive;
bh=UAeOF1KbUcv8wB4YdCjgfOPQZe0J7C26+94dCyxcdMU=; b=Cd0McjnLphQNbp8N1hW276GxVI
gtA0ejTrt58fjYUXEzoFtPK9cyyKCwVXOkW2lhqye4xMZIyRYhI+qyytJnJg+iqJhmBp1vkzrCog9
sADo7pOMCEAVYFhpBVSx9UheQSI9L6MqHV+fo6hL6vcm8kKM4j2cvm9US0J+6rCyNzjc=;
Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva)
by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.92) (envelope-from ) id 1m02b3-0000wC-1e
for control@debbugs.gnu.org; Sun, 04 Jul 2021 15:55:47 +0200
Date: Sun, 04 Jul 2021 15:55:44 +0200
Message-Id: <874kda41zz.fsf@gnus.org>
To: control@debbugs.gnu.org
From: Lars Ingebrigtsen
Subject: control message for bug #49344
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
@@CONTACT_ADDRESS@@ for details.
Content preview: tags 49344 notabug close 49344 quit
Content analysis details: (-2.9 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -3.3 (---)
tags 49344 notabug
close 49344
quit
From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 04 20:18:55 2021
Received: (at 49344) by debbugs.gnu.org; 5 Jul 2021 00:18:55 +0000
Received: from localhost ([127.0.0.1]:43417 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1m0CK6-0001v8-S6
for submit@debbugs.gnu.org; Sun, 04 Jul 2021 20:18:55 -0400
Received: from mail-wr1-f46.google.com ([209.85.221.46]:36567)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1m0CK2-0001ur-3j
for 49344@debbugs.gnu.org; Sun, 04 Jul 2021 20:18:53 -0400
Received: by mail-wr1-f46.google.com with SMTP id v5so19887024wrt.3
for <49344@debbugs.gnu.org>; Sun, 04 Jul 2021 17:18:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=4/GnXpPWF4qkGMpIhwqaBORwS2TNIBBvnx6DSWFSugo=;
b=eMOcMLFssvIqouQpIzK6/IeNdR3HDh0/Dn4/Q7G3fFsdDQ6bODyWdar1pfmUn//Ajq
YQ24LCNlKSix169av+hacHzXdKMRyY67gHCRVZ6Pi8NjrkC7RGBNpZgViMkFazAuMWgV
nlNlqKBKnMJy818gxFL00WDwSdZvrM2+jNB9qJL6u+1c4A561RITHFqPJBaw0lS+dL15
7cnjxJ8M13bDHG2+xvP5meEGpeIa4Zb5UrWo5yQ0x2dPn9ghSTQCYHaUK9HeFBQ2eCq0
uCOcANQoisDBs0zwi/YqQurQLY3A8Hf5nh7wfA+cCXdWqOyaoMku8MUpmSQiiYnRf3an
hdMw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=4/GnXpPWF4qkGMpIhwqaBORwS2TNIBBvnx6DSWFSugo=;
b=dPiyWE0Sud2nMXlIECuhp/8gy6TKsrVgsekrRYVezUq2Nlv6BEHllOVwIqLhMqYk3d
sDMrbYLrfWn9s8pD3OPc7Vs6IAGYKyXOIYn2AmQuI9FhctMeMYC4w+gJKHL7q6dQ0uab
sd1hejzAjFihSwPT6oX4qRiJKIQSv8Z6nAKsORUOJyvUdJvOnyggvJ/1GboQy/2/26SC
bsDjXvNoY5r8mTSdDel4QXsouQ0drRWaIOkntQrlV7xWBv4DX5zECQVh7Rn6xLJX3XyS
b2dsmKLZD0FfuwkSASaJKBLSPcgToo57f0SYoUtjeaAy3o9fheAa1QVBjk4uVKyBdrOS
eFqQ==
X-Gm-Message-State: AOAM530TpBYqAsEWbTPCUg/zLPq3TBZJ9vizUf5u4a2NLc+3fvGAwsc/
hiO4tYjK3VOQSNWfL1TNnGkk8DgndNLDg6rv4QY=
X-Google-Smtp-Source: ABdhPJzCosDdgBYXt48vjmtiAmzGbz829HrlcJxJq9G+UoXpFraoZEJzdZKt6FahkyGEXiRYGoyLuRtofwsTH4zDfmo=
X-Received: by 2002:a5d:528d:: with SMTP id c13mr12509571wrv.343.1625444324310;
Sun, 04 Jul 2021 17:18:44 -0700 (PDT)
MIME-Version: 1.0
References:
<313d84e33a30dfc7b789ecbda17b88fa@webmail.orcon.net.nz>
<875yxq4206.fsf@gnus.org>
In-Reply-To: <875yxq4206.fsf@gnus.org>
From: =?UTF-8?B?5p2o6Iux6LaF?=
Date: Mon, 5 Jul 2021 08:16:52 +0800
Message-ID:
Subject: Re: bug#49344: shr: Add support for "data-src" attribute in
nodes
To: Lars Ingebrigtsen
Content-Type: multipart/alternative; boundary="0000000000008d81a705c6553fe2"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 49344
Cc: Phil Sainty , 49344@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
--0000000000008d81a705c6553fe2
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
At your wish, although I don't agree. I have my own fork I can play with.
Lars Ingebrigtsen =E4=BA=8E2021=E5=B9=B47=E6=9C=884=E6=97=
=A5=E5=91=A8=E6=97=A5 =E4=B8=8B=E5=8D=889:55=E5=86=99=E9=81=93=EF=BC=9A
> Phil Sainty writes:
>
> > This is simply bad web design, and I don't think that's eww's
> > problem to solve.
>
> Indeed, so I'm closing this bug report.
>
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
>
--0000000000008d81a705c6553fe2
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
At your wish, although=C2=A0I don't agree. I have my o=
wn fork I can play with.
Lars Ingebrigtsen <
larsi@gnus.org> =E4=BA=8E2021=E5=B9=B47=E6=9C=884=E6=97=A5=E5=
=91=A8=E6=97=A5 =E4=B8=8B=E5=8D=889:55=E5=86=99=E9=81=93=EF=BC=9A
=
Phil Sainty <psainty@orcon.net.nz=
> writes:
> This is simply bad web design, and I don't think that's eww=
9;s
> problem to solve.
Indeed, so I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
=C2=A0 =C2=A0bloggy blog: http://lars.ingebrigtsen.no
--0000000000008d81a705c6553fe2--
From unknown Sat Aug 16 15:57:14 2025
Received: (at fakecontrol) by fakecontrolmessage;
To: internal_control@debbugs.gnu.org
From: Debbugs Internal Request
Subject: Internal Control
Message-Id: bug archived.
Date: Mon, 02 Aug 2021 11:24:06 +0000
User-Agent: Fakemail v42.6.9
# This is a fake control message.
#
# The action:
# bug archived.
thanks
# This fakemail brought to you by your local debbugs
# administrator