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, 13 Dec 2018 08:47:06 +0100
parents 48cabd01ef64
children 3fcd2209b39a
files js/feed-parser.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/js/feed-parser.js	Wed Dec 12 22:38:45 2018 +0100
+++ b/js/feed-parser.js	Thu Dec 13 08:47:06 2018 +0100
@@ -640,7 +640,7 @@
         }
 
         let descriptionElement = feedQueryXPath(this.document, documentElement,
-                './channel/description');
+                './rss:channel/rss:description');
         if (descriptionElement !== null) {
             subtitle = descriptionElement.textContent;
         }