Mercurial > prosody-modules
changeset 1189:1630c6ed3814
mod_admin_web: Use .textContent, instead of .innerHTML
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Sat, 07 Sep 2013 14:56:36 +0200 |
parents | 5eaecb7f680d |
children | c99d8b666eb4 |
files | mod_admin_web/admin_web/www_files/js/main.js |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_admin_web/admin_web/www_files/js/main.js Fri Sep 06 13:07:57 2013 +0200 +++ b/mod_admin_web/admin_web/www_files/js/main.js Sat Sep 07 14:56:36 2013 +0200 @@ -52,7 +52,7 @@ metadata.appendTo(entry); for (j = 0; j < infos.length; j++) { info = infos[j]; - metadata.append('<li><b>' + info.attributes.getNamedItem('name').value + ':</b> ' + info.innerHTML + '</li>'); + metadata.append('<li><b>' + info.attributes.getNamedItem('name').value + ':</b> ' + info.textContent + '</li>'); } if (infos.length == 0) metadata.append('<li>No information available</li>'); @@ -93,7 +93,7 @@ metadata.appendTo(entry); for (j = 0; j < infos.length; j++) { info = infos[j]; - metadata.append('<li><b>' + info.attributes.getNamedItem('name').value + ':</b> ' + info.innerHTML + '</li>'); + metadata.append('<li><b>' + info.attributes.getNamedItem('name').value + ':</b> ' + info.textContent + '</li>'); } if (infos.length == 0) metadata.append('<li>No information available</li>');