Mercurial > addons > firefox-addons > feed-preview
diff content_scripts/feed-probe.js @ 25:da483ce3832d
Fix selector for rel attributes
The rel attribute may contain a list of words to describe link relationships,
thus use the corect selector for that.
author | Guido Berhoerster <guido+feed-preview@berhoerster.name> |
---|---|
date | Fri, 28 Dec 2018 12:27:16 +0100 |
parents | bc5cc170163c |
children | 76e23b361e92 |
line wrap: on
line diff
--- a/content_scripts/feed-probe.js Sun Dec 16 10:29:19 2018 +0100 +++ b/content_scripts/feed-probe.js Fri Dec 28 12:27:16 2018 +0100 @@ -13,7 +13,7 @@ function getFeeds() { let urlsFeeds = new Map(); let elements = document.querySelectorAll(':-moz-any(link, a)[href]' + - '[rel=alternate]:-moz-any([type="application/atom+xml"], ' + + '[rel~=alternate]:-moz-any([type="application/atom+xml"], ' + '[type="application/rss+xml"])'); for (let element of elements) {