[Pkg-mozext-commits] [sage-extension] 14/39: feed parsing update

David Prévot taffit at moszumanska.debian.org
Fri May 1 03:10:20 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 dbe5fcdc1ecf0af1f92f6050e7934fc0b7b335e3
Author: Peter Andrews <petea at jhu.edu>
Date:   Sat May 29 08:17:31 2004 +0000

    feed parsing update
---
 src/sage/content/feedlib.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/sage/content/feedlib.js b/src/sage/content/feedlib.js
index 3dcd933..d5aef8f 100644
--- a/src/sage/content/feedlib.js
+++ b/src/sage/content/feedlib.js
@@ -105,15 +105,15 @@ Feed.prototype.parseATOM = function() {
 
 	this.feedFormat = "ATOM";
 
-	for(var i = feedXML.documentElement.firstChild; i != null; i = i.nextSibling){
+	for(var i = feedXML.documentElement.firstChild; i != null; i = i.nextSibling) {
 		if(i.nodeType != i.ELEMENT_NODE) continue;
-		switch(i.localName){
+		switch(i.localName) {
 			case "title":
 				this.title = CommonFunc.getInnerText(i);
 				break;
 			case "link":
 				if(this.link) {
-					if(i.getAttribute("rel").toLowerCase() == "alternate"){
+					if(i.getAttribute("rel").toLowerCase() == "alternate") {
 						this.link = i.getAttribute("href");
 					}
 				} else {
@@ -137,8 +137,8 @@ Feed.prototype.parseATOM = function() {
 
 		var linkNodes = entryNodes[i].getElementsByTagName("link");
 		if(linkNodes.length) {
-			for (j = 0; j < linkNodes.length; j++) {
-				if (linkNodes[j].getAttribute("rel") == "alternate") {
+			for (var j = 0; j < linkNodes.length; j++) {
+				if (linkNodes[j].getAttribute("rel").toLowerCase() == "alternate") {
 					item.link = linkNodes[j].getAttribute("href");
 					break;
 				}

-- 
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