addons/firefox-addons/feed-preview

changeset 18:15db49e77deb

Fix parsing the description of RSS 0.9 feeds

Add missing namespace to XPath query.
author Guido Berhoerster <guido+feed-preview@berhoerster.name>
date Thu Dec 13 08:47:06 2018 +0100 (17 months ago)
parents 48cabd01ef64
children 3fcd2209b39a
files js/feed-parser.js
line diff
     1.1 --- a/js/feed-parser.js	Wed Dec 12 22:38:45 2018 +0100
     1.2 +++ b/js/feed-parser.js	Thu Dec 13 08:47:06 2018 +0100
     1.3 @@ -640,7 +640,7 @@
     1.4          }
     1.5  
     1.6          let descriptionElement = feedQueryXPath(this.document, documentElement,
     1.7 -                './channel/description');
     1.8 +                './rss:channel/rss:description');
     1.9          if (descriptionElement !== null) {
    1.10              subtitle = descriptionElement.textContent;
    1.11          }