Mercurial > addons > firefox-addons > feed-preview
diff js/feed-parser.js @ 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 |
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; }