comparison mod_admin_web/admin_web/www_files/js/main.js @ 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 d643c385d3f6
children
comparison
equal deleted inserted replaced
1188:5eaecb7f680d 1189:1630c6ed3814
50 $(this).find("ul").slideToggle(); 50 $(this).find("ul").slideToggle();
51 }); 51 });
52 metadata.appendTo(entry); 52 metadata.appendTo(entry);
53 for (j = 0; j < infos.length; j++) { 53 for (j = 0; j < infos.length; j++) {
54 info = infos[j]; 54 info = infos[j];
55 metadata.append('<li><b>' + info.attributes.getNamedItem('name').value + ':</b> ' + info.innerHTML + '</li>'); 55 metadata.append('<li><b>' + info.attributes.getNamedItem('name').value + ':</b> ' + info.textContent + '</li>');
56 } 56 }
57 if (infos.length == 0) 57 if (infos.length == 0)
58 metadata.append('<li>No information available</li>'); 58 metadata.append('<li>No information available</li>');
59 59
60 if (items[i].getElementsByTagName('out')[0]) { 60 if (items[i].getElementsByTagName('out')[0]) {
91 $(this).find("ul").slideToggle(); 91 $(this).find("ul").slideToggle();
92 }); 92 });
93 metadata.appendTo(entry); 93 metadata.appendTo(entry);
94 for (j = 0; j < infos.length; j++) { 94 for (j = 0; j < infos.length; j++) {
95 info = infos[j]; 95 info = infos[j];
96 metadata.append('<li><b>' + info.attributes.getNamedItem('name').value + ':</b> ' + info.innerHTML + '</li>'); 96 metadata.append('<li><b>' + info.attributes.getNamedItem('name').value + ':</b> ' + info.textContent + '</li>');
97 } 97 }
98 if (infos.length == 0) 98 if (infos.length == 0)
99 metadata.append('<li>No information available</li>'); 99 metadata.append('<li>No information available</li>');
100 entry.appendTo('#c2s'); 100 entry.appendTo('#c2s');
101 } 101 }