addons/firefox-addons/feed-preview

changeset 7:2bbb7617dd13

Alternatively use Atom links without the rel attribute
author Guido Berhoerster <guido+feed-preview@berhoerster.name>
date Tue Nov 27 10:47:26 2018 +0100 (18 months ago)
parents 5d7c13e998e9
children c271192aac9d
files js/feed-parser.js
line diff
     1.1 --- a/js/feed-parser.js	Thu Nov 08 16:30:34 2018 +0100
     1.2 +++ b/js/feed-parser.js	Tue Nov 27 10:47:26 2018 +0100
     1.3 @@ -228,7 +228,7 @@
     1.4          }
     1.5  
     1.6          let linkElement = feedQueryXPath(this.document, entryElement,
     1.7 -                './atom:link[@href][@rel="alternate"]');
     1.8 +                './atom:link[@href][not(@rel) or @rel="alternate"]');
     1.9          if (linkElement !== null) {
    1.10              link = parseURL(linkElement.getAttribute('href'), this.url);
    1.11          }