diff atom.js @ 2:eb5b6d3ab09b

Better import of ns and jid; fix email and missing ns.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 13 Jul 2011 13:11:54 +0200
parents 82905edac9d8
children 4d7a67349089
line wrap: on
line diff
--- a/atom.js
+++ b/atom.js
@@ -66,7 +66,7 @@ parsers[ns.atom] = function(id, xml) {
 			if (atomEmail) {
 				footer.appendChild(document.createTextNode(' ('));
 				var a = document.createElementNS(ns.xhtml, 'a');
-				a.href = atomEmail;
+				a.href = 'mailto:' + atomEmail;
 				a.appendChild(document.createTextNode('email'));
 				footer.appendChild(a);
 				footer.appendChild(document.createTextNode(')'));