Ticket #3048: testrunner-innerhtml-patch.txt
| File testrunner-innerhtml-patch.txt, 507 bytes (added by bdumon, 5 years ago) |
|---|
| Line | |
|---|---|
| 1 | Index: qunit/testrunner.js |
| 2 | =================================================================== |
| 3 | --- qunit/testrunner.js (revision 5726) |
| 4 | +++ qunit/testrunner.js (working copy) |
| 5 | @@ -151,7 +151,7 @@ |
| 6 | for ( var i = 0; i < _config.Test.length; i++ ) { |
| 7 | var li = document.createElement("li"); |
| 8 | li.className = _config.Test[i][0] ? "pass" : "fail"; |
| 9 | - li.innerHTML = _config.Test[i][1]; |
| 10 | + li.appendChild(document.createTextNode(_config.Test[i][1])); |
| 11 | ol.appendChild( li ); |
| 12 | |
| 13 | _config.stats.all++; |
