зеркало из https://github.com/mozilla/gecko-dev.git
bug 357539. Feed parser does not recognize lastBuildDate field. r=mano
This commit is contained in:
Родитель
c6fac551ac
Коммит
20a368628b
|
@ -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>
|
Загрузка…
Ссылка в новой задаче