[Pkg-mozext-commits] [sage-extension] 04/39: feed parsing update
David Prévot
taffit at moszumanska.debian.org
Fri May 1 03:10:19 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag sage_1_1
in repository sage-extension.
commit eb5ec0970633735501b8cee91c2d7cef1b8ade54
Author: Peter Andrews <petea at jhu.edu>
Date: Sat May 29 05:57:32 2004 +0000
feed parsing update
---
src/sage/content/feedlib.js | 8 ++++----
src/sage/content/sage.js | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/sage/content/feedlib.js b/src/sage/content/feedlib.js
index 3ef5bcf..f9b432f 100644
--- a/src/sage/content/feedlib.js
+++ b/src/sage/content/feedlib.js
@@ -166,7 +166,7 @@ var Feed = {
var contentNodes = aEntryNode.getElementsByTagName("content");
var contentArray = new Array();
- for(var i=0; i<contentNodes.length; i++){
+ for(i = 0; i < contentNodes.length; i++){
var contType = contentNodes[i].getAttribute("type");
contentArray[contType] = CommonFunc.getInnerText(contentNodes[i]);
}
@@ -175,11 +175,11 @@ var Feed = {
if("application/xhtml+xml" in contentArray) {
item.content = contentArray["application/xhtml+xml"];
- } elseif("text/html" in contentArray) {
+ } else if("text/html" in contentArray) {
item.content = contentArray["text/html"];
- } elseif("text/plain" in contentArray) {
+ } else if("text/plain" in contentArray) {
item.content = contentArray["text/plain"];
- } elseif(summaryNodes.length) {
+ } else if(summaryNodes.length) {
item.content = CommonFunc.getInnerText(summaryNodes[0]);
}
diff --git a/src/sage/content/sage.js b/src/sage/content/sage.js
index c956802..85938ec 100755
--- a/src/sage/content/sage.js
+++ b/src/sage/content/sage.js
@@ -463,7 +463,7 @@ function httpGetResult(aResultCode) {
rssLoading = false;
if(aResultCode == RESULT_OK) {
- //currentFeed = new Feed(responseXML);
+ currentFeed = new Feed(responseXML);
if(lastResource.res) {
BMSVC.updateLastVisitedDate(lastResource.res, responseXML.characterSet);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/sage-extension.git
More information about the Pkg-mozext-commits
mailing list