Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2668)

Unified Diff: experimental/webtry/js/run.js

Issue 249113004: Use textContent instead of innerText. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/webtry/js/run.js
diff --git a/experimental/webtry/js/run.js b/experimental/webtry/js/run.js
index d44e81817ba4583a95993fd3da93aa85df705211..9f1e8031f0682560286b5e661d3df8a484ce6679 100644
--- a/experimental/webtry/js/run.js
+++ b/experimental/webtry/js/run.js
@@ -72,9 +72,9 @@
}
function clearOutput() {
- output.innerText = "";
+ output.textContent = "";
if (stdout) {
- stdout.innerText = "";
+ stdout.textContent = "";
}
embed.style.display='none';
}
@@ -141,9 +141,9 @@
endWait();
console.log(e.target.response);
body = JSON.parse(e.target.response);
- output.innerText = body.message;
+ output.textContent = body.message;
if (stdout) {
- stdout.innerText = body.stdout;
+ stdout.textContent = body.stdout;
}
if (body.hasOwnProperty('img')) {
img.src = 'data:image/png;base64,' + body.img;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698