1
0
mirror of https://github.com/aureliendavid/rsspreview.git synced 2025-08-22 11:18:37 +00:00

fix for rss1 following 6a36b62 (#89)

v3.33.1
This commit is contained in:
Aurelien David 2025-04-22 13:17:58 +02:00
parent f7e76b5009
commit a124ab201b
2 changed files with 8 additions and 5 deletions

View File

@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "RSSPreview",
"version": "3.33",
"version": "3.33.1",
"author": "Aurelien David",
"homepage_url": "https://github.com/aureliendavid/rsspreview",

View File

@ -169,7 +169,7 @@
//only do it if there's a tag to avoid doing it when text titles cointain a '&'
//(which can be caught but still displays an error in console, which is annoying)
if (et[i].innerText.indexOf('<') >= 0 || et[i].innerText.indexOf('&amp;')) {
console.log(et[i].innerText);
let tmp = document.createElement('span');
try {
tmp.innerHTML = et[i].innerText;
@ -267,9 +267,12 @@
let isRSS1 = false;
if (rootName == 'rdf' || rootName == 'rdf:rdf')
if (rootNode.attributes['xmlns'])
isRSS1 = rootNode.attributes['xmlns'].nodeValue.search('rss') > 0;
if (rootName == 'rdf' || rootName == 'rdf:rdf') {
if (rootNode.documentElement.attributes['xmlns']) {
isRSS1 = rootNode.documentElement.attributes['xmlns'].nodeValue.search('rss') > 0;
}
}
if (
rootName == 'rss' ||