# HG changeset patch # User Emmanuel Gil Peyrot # Date 1316422855 25200 # Node ID 4d7a673490890120d7aa1bf337f41bfc8b55648c # Parent f630f4b90564a69f88e70a1b212f909ee4ff7996 Finish the changing of name to Eldonilo. diff --git a/atom.js b/atom.js --- 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); diff --git a/nothing.js b/nothing.js --- 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; };