Index: openacs-4/packages/chat/www/ajax/chat.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/chat/www/ajax/Attic/chat.js,v diff -u -r1.4.6.4 -r1.4.6.5 --- openacs-4/packages/chat/www/ajax/chat.js 24 Nov 2016 14:12:28 -0000 1.4.6.4 +++ openacs-4/packages/chat/www/ajax/chat.js 6 Apr 2017 18:21:17 -0000 1.4.6.5 @@ -133,12 +133,24 @@ e = node.childNodes[i].getElementsByTagName('TD'); td = doc.createElement('td'); - td.innerHTML = e[0].innerHTML; + // 2017-04-06: + // - td.innerHTML = e[0].innerHTML: Explorer 11 will show + // undefined instead of username + // - td.appendChild(e[0].firstChild): Chrome loses href and + // style + // copying by hand is currently the only solution I have found + ea = e[0].firstChild; + a = doc.createElement('a'); + a.setAttribute('target', ea.getAttribute('target')); + a.setAttribute('href', ea.getAttribute('href')); + a.setAttribute('style', ea.getAttribute('style')); + a.textContent = ea.textContent; + td.appendChild(a); td.className = 'user'; tr.appendChild(td); - td = doc.createElement('td'); - td.innerHTML = e[1].innerHTML; + td = doc.createElement('td'); + td.appendChild(e[1].firstChild); td.className = 'timestamp'; tr.appendChild(td);