bug 357539. Feed parser does not recognize lastBuildDate field. r=mano

This commit is contained in:
sayrer%gmail.com 2006-11-13 05:35:46 +00:00
Родитель c6fac551ac
Коммит 20a368628b
3 изменённых файлов: 27 добавлений и 2 удалений

Просмотреть файл

@ -349,8 +349,8 @@ Feed.prototype = {
textInput: ["textInput", "rss1:textinput"],
skipDays: ["skipDays"],
skipHours: ["skipHours"],
updated: ["pubDate", "atom03:modified", "dc:date", "dcterms:modified",
"atom:updated"]
updated: ["pubDate", "lastBuildDate", "atom03:modified", "dc:date",
"dcterms:modified", "atom:updated"]
},
normalize: function Feed_normalize() {

Просмотреть файл

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!--
Description: channel lastBuildDate works
Expect: feed.updated == 'Sat, 07 Sep 2002 00:00:01 GMT'
-->
<rss version="2.0" >
<channel>
<lastBuildDate>Sat, 07 Sep 2002 00:00:01 GMT</lastBuildDate>
</channel>
</rss>

Просмотреть файл

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!--
Description: channel lastBuildDate trumps pubDate
Expect: feed.updated == 'Sat, 07 Sep 2002 00:00:01 GMT'
-->
<rss version="2.0" >
<channel>
<pubDate>Sun, 08 Sep 2002 00:00:01 GMT</pubDate>
<lastBuildDate>Sat, 07 Sep 2002 00:00:01 GMT</lastBuildDate>
</channel>
</rss>