view nothing.js @ 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 f62b5c395a48
children 161d4ea1c3f8
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.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;
	};

	this.xml = xml;
	this.date = toDate(xml);
	this.html = toHTML(xml, this.date);
}