var a = document.createElement('a');
a.href = href;
a.id = id;
- a.innerHTML = text;
+ a.textContent = text;
return a;
}
var tdResult = document.createElement('td');
tdResult.setAttribute('class', 'outcome');
- tdResult.innerHTML = result.result ? 'pass' : 'fail';
+ tdResult.textContent = result.result ? 'pass' : 'fail';
tr.appendChild(tdResult);
var tdName = document.createElement('td');
tr.appendChild(tdName);
var tdDuration = document.createElement('td');
- tdDuration.innerHTML = result.duration + ' ms';
+ tdDuration.textContent = result.duration + ' ms';
tr.appendChild(tdDuration);
if (result.e) {
var createLink = function(parent, title, url) {
var li = createAttached('li', parent);
var a = createAttached('a', li);
- a.innerHTML = title;
+ a.textContent = title;
a.href = url;
return li;
}
if (this.tc == null) {
- description.innerHTML = 'Test cases:';
+ description.textContent = 'Test cases:';
var testCases = getAllTestCases();
createLink(list, '(run all tests)', document.URL + '?command=runAllTests');
for (var idx in testCases) {
createLink(list, entryName, document.URL + '?testCaseName=' + entryName);
}
} else {
- description.innerHTML = 'Tests for ' + name;
+ description.textContent = 'Tests for ' + name;
var names = this.tc.getTestNames();
createLink(list, 'Run All Tests', document.URL + '&command=runAllTests');
for (var idx in names) {