comparison 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
comparison
equal deleted inserted replaced
1:82905edac9d8 2:eb5b6d3ab09b
64 64
65 var atomEmail = atomAuthor.getChild('email'); 65 var atomEmail = atomAuthor.getChild('email');
66 if (atomEmail) { 66 if (atomEmail) {
67 footer.appendChild(document.createTextNode(' (')); 67 footer.appendChild(document.createTextNode(' ('));
68 var a = document.createElementNS(ns.xhtml, 'a'); 68 var a = document.createElementNS(ns.xhtml, 'a');
69 a.href = atomEmail; 69 a.href = 'mailto:' + atomEmail;
70 a.appendChild(document.createTextNode('email')); 70 a.appendChild(document.createTextNode('email'));
71 footer.appendChild(a); 71 footer.appendChild(a);
72 footer.appendChild(document.createTextNode(')')); 72 footer.appendChild(document.createTextNode(')'));
73 } 73 }
74 74