Mercurial > eldonilo > blog
view nothing.js @ 4:f630f4b90564
Remove the old log system and use console.log instead.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Mon, 19 Sep 2011 01:51:12 -0700 |
parents | f62b5c395a48 |
children | 4d7a67349089 |
line wrap: on
line source
'use strict'; parsers[''] = function(id, xml) { var toDate = function() { return new Date(); }; 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.appendChild(document.createElementNS(ns.xhtml, 'h2').appendChild(document.createTextNode('This post is in an unknown namespace.'))); return article; }; this.xml = xml; this.date = toDate(xml); this.html = toHTML(xml, this.date); }