changeset 7:2bbb7617dd13

Alternatively use Atom links without the rel attribute
author Guido Berhoerster <guido+feed-preview@berhoerster.name>
date Tue, 27 Nov 2018 10:47:26 +0100
parents 5d7c13e998e9
children c271192aac9d
files js/feed-parser.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/js/feed-parser.js	Thu Nov 08 16:30:34 2018 +0100
+++ b/js/feed-parser.js	Tue Nov 27 10:47:26 2018 +0100
@@ -228,7 +228,7 @@
         }
 
         let linkElement = feedQueryXPath(this.document, entryElement,
-                './atom:link[@href][@rel="alternate"]');
+                './atom:link[@href][not(@rel) or @rel="alternate"]');
         if (linkElement !== null) {
             link = parseURL(linkElement.getAttribute('href'), this.url);
         }