[Pkg-mozext-commits] [sage-extension] 18/49: proper handling of Atom application/xhtml+xml content type
David Prévot
taffit at moszumanska.debian.org
Fri May 1 03:10:53 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag sage_1_3_10
in repository sage-extension.
commit 17264680d39ebc69c3ad17ba599c228d0c000570
Author: Peter Andrews <petea at jhu.edu>
Date: Mon Jun 13 01:50:19 2005 +0000
proper handling of Atom application/xhtml+xml content type
---
src/sage/content/feedlib.js | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/sage/content/feedlib.js b/src/sage/content/feedlib.js
index 7b50bff..b7be64b 100644
--- a/src/sage/content/feedlib.js
+++ b/src/sage/content/feedlib.js
@@ -216,14 +216,19 @@ Feed.prototype.parseAtom = function() {
var contentNodes = aEntryNode.getElementsByTagName("content");
var contentArray = new Array();
+ var contentString;
var xmlSerializer = new XMLSerializer();
for(j = 0; j < contentNodes.length; j++) {
var contType = contentNodes[j].getAttribute("type");
if(contType == "application/xhtml+xml") {
- contentArray[contType] = xmlSerializer.serializeToString(contentNodes[j]);
+ contentString = "";
+ for(z = 0; z < contentNodes[j].childNodes.length; z++) {
+ contentString += xmlSerializer.serializeToString(contentNodes[j].childNodes[z]);
+ }
} else {
- contentArray[contType] = CommonFunc.getInnerText(contentNodes[j]);
+ contentString = CommonFunc.getInnerText(contentNodes[j]);
}
+ contentArray[contType] = contentString;
}
var summaryNodes = aEntryNode.getElementsByTagName("summary");
--
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