Discussion:
Why doesn't this render in gnus shr/eww?
Steinar Bang
2015-01-30 20:30:47 UTC
Permalink
Platform: Intel P4, debian testing ("jessie")
Emacs-version: GNU Emacs 24.4.1 (i586-pc-linux-gnu, GTK+ Version 3.14.4) of 2014-10-26 on x86-csail-01, modified by Debian
Gnus-version: Ma Gnus v0.8 (git master HEAD)


This article nntp://news.gwene.org/gwene.no.tu.forside/549
has this content type:
Content-Type: text/html; charset=utf-8

with this content
<img src="Loading Image..." alt="Foto: Luminator />
<p>Hindrer at gangfeltene forsvinner om vinteren.</p>

<p><a href="http://www.tu.no/samferdsel/2015/01/03/her-kan-de-fa-gangfelt-som-lyser-oppa-snoen">Link</a>

and it renders like this:
Foto: Lu
Link

I would have expected shr/eww to be able to show that image and that
link? It does in other articles in the same group (well, I haven't seen
images in that particular feed, actually..., but the links are
clickable).
Adam Sjøgren
2015-01-30 23:51:27 UTC
Permalink
Post by Steinar Bang
I would have expected shr/eww to be able to show that image and that
link? It does in other articles in the same group (well, I haven't seen
images in that particular feed, actually..., but the links are
clickable).
For what it is worth, I get the image (after a slight delay, while it
downloads, I assume).


Best regards,

Adam
--
"Kræmmersjæl - mit x-idol Adam Sjøgren
Så omsorgsfuld som en elektrisk stol" ***@koldfront.dk
Lars Ingebrigtsen
2015-01-31 00:49:26 UTC
Permalink
Post by Steinar Bang
I would have expected shr/eww to be able to show that image and that
link? It does in other articles in the same group (well, I haven't seen
images in that particular feed, actually..., but the links are
clickable).
Have you set `gnus-inhibit-images' or `shr-blocked-images', by any
chance?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Steinar Bang
2015-01-31 14:02:41 UTC
Permalink
Post by Lars Ingebrigtsen
Post by Steinar Bang
I would have expected shr/eww to be able to show that image and that
link? It does in other articles in the same group (well, I haven't seen
images in that particular feed, actually..., but the links are
clickable).
Have you set `gnus-inhibit-images' or `shr-blocked-images', by any
chance?
Er yes... sorry!

But the "Link" should be clickable with <p><a></a> and libxml2 in HTML
parse mode, shouldn't it? It isn't clickable for me in this article.

Also, it only shows the first 8 chars of the alt text (but this may be
normal...?) Hm... seems to be the case for all articles.

The links are clickable in most of the articles in the same feed.

Here is one that is clickable: nntp://news.gwene.org/gwene.no.tu.forside/791

Content-Type: text/html; charset=utf-8

<img src="Loading Image..." alt="Foto: J.¶rgen Skjelsb.Šk" />
<p>Ny dansk analyse. </p>

<p><a href="http://www.tu.no/kraft/2015/01/30/billigere-a-rive-hus-og-bygge-vindmoller-enn-a-bygge-ut-havvind">Link</a>

One thing that is common for all of the artcles that shows a clickable
link, is that they have an extra paragraph with a little bit of text.

The unclickable ones have just the <img /> and then the <p><a>Link</a>
Lars Ingebrigtsen
2015-02-05 03:37:30 UTC
Permalink
Post by Steinar Bang
Post by Lars Ingebrigtsen
Have you set `gnus-inhibit-images' or `shr-blocked-images', by any
chance?
Er yes... sorry!
But the "Link" should be clickable with <p><a></a> and libxml2 in HTML
parse mode, shouldn't it? It isn't clickable for me in this article.
It should be, but the HTML in that article is degenerate:

------------
<img src="http://www.tu.no/incoming/2015/01/02/1200036172.jpg/alternates/h585/1200036172.jpg" alt="Foto: Luminator />
<p>Hindrer at gangfeltene forsvinner om vinteren.</p>

<p><a href="http://www.tu.no/samferdsel/2015/01/03/her-kan-de-fa-gangfelt-som-lyser-oppa-snoen">Link</a>
------------

Note how everything until the href=" in the article is contained within
the alt=" text.
Post by Steinar Bang
Also, it only shows the first 8 chars of the alt text (but this may be
normal...?) Hm... seems to be the case for all articles.
Yes, it limits the placeholder text (to be replaced by the image), I
think.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Steinar Bang
2015-02-05 17:19:00 UTC
Permalink
Post by Lars Ingebrigtsen
Note how everything until the href=" in the article is contained within
the alt=" text.
(if one doesn't need closing tags, why would one need closing quotes...?)
Steinar Bang
2015-02-05 20:24:14 UTC
Permalink
Post by Steinar Bang
Post by Lars Ingebrigtsen
Note how everything until the href=" in the article is contained within
the alt=" text.
(if one doesn't need closing tags, why would one need closing quotes...?)
(which is my way of saying I'm embarassed I didn't sport that one...)
Lars Ingebrigtsen
2015-02-06 10:03:35 UTC
Permalink
Post by Steinar Bang
(which is my way of saying I'm embarassed I didn't sport that one...)
No worries, mate.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Loading...