Mercurial > addons > firefox-addons > feed-preview
comparison 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 |
comparison
equal
deleted
inserted
replaced
17:48cabd01ef64 | 18:15db49e77deb |
---|---|
638 if (titleElement !== null) { | 638 if (titleElement !== null) { |
639 title = titleElement.textContent; | 639 title = titleElement.textContent; |
640 } | 640 } |
641 | 641 |
642 let descriptionElement = feedQueryXPath(this.document, documentElement, | 642 let descriptionElement = feedQueryXPath(this.document, documentElement, |
643 './channel/description'); | 643 './rss:channel/rss:description'); |
644 if (descriptionElement !== null) { | 644 if (descriptionElement !== null) { |
645 subtitle = descriptionElement.textContent; | 645 subtitle = descriptionElement.textContent; |
646 } | 646 } |
647 | 647 |
648 let imageElement = feedQueryXPath(this.document, documentElement, | 648 let imageElement = feedQueryXPath(this.document, documentElement, |