diff js/feed-parser.js @ 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 376a0e415bba
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);
         }