changeset 5:4d7a67349089

Finish the changing of name to Eldonilo.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 19 Sep 2011 02:00:55 -0700
parents f630f4b90564
children 29becdd02dea
files atom.js nothing.js
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/atom.js
+++ b/atom.js
@@ -3,17 +3,17 @@
 parsers[ns.atom] = function(id, xml) {
 	var toDate = function(atom) {
 		if (!atom)
-			return new Date();
+			return new Date;
 
 		var last = atom.getChild('updated');
 		if (!last) {
 			last = atom.getChild('published');
 			if (!last)
-				return new Date();
+				return new Date;
 		}
 
 		// var d = new Date(last); // FIXME: don't work in obsolete browsers
-		var d = new Date();
+		var d = new Date;
 		d.set8601(last);
 
 		return d;
@@ -22,9 +22,9 @@ parsers[ns.atom] = function(id, xml) {
 	var toHTML = function(atom, date) {
 		var article = document.createElementNS(ns.xhtml, 'article');
 
-		article.setAttributeNS(ns.idq, 'id', id);
+		article.setAttributeNS(ns.e, 'id', id);
 		var d8601 = date.to8601();
-		article.setAttributeNS(ns.idq, 'date', d8601);
+		article.setAttributeNS(ns.e, 'date', d8601);
 
 		var aside = document.createElementNS(ns.xhtml, 'aside');
 		article.appendChild(aside);
--- a/nothing.js
+++ b/nothing.js
@@ -7,8 +7,8 @@ parsers[''] = function(id, xml) {
 
 	var toHTML = function(xml, date) {
 		var article = document.createElementNS(ns.xhtml, 'article');
-		article.setAttributeNS(ns.idq, 'id', id);
-		article.setAttributeNS(ns.idq, 'date', date.to8601());
+		article.setAttributeNS(ns.e, 'id', id);
+		article.setAttributeNS(ns.e, 'date', date.to8601());
 		article.appendChild(document.createElementNS(ns.xhtml, 'h2').appendChild(document.createTextNode('This post is in an unknown namespace.')));
 		return article;
 	};