Use textContent instead of innerText.
BUG=skia: R=mtklein@google.com Author: jcgregorio@google.com Review URL: https://codereview.chromium.org/249113004 git-svn-id: http://skia.googlecode.com/svn/trunk@14331 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
3adcc34033
commit
edbd6ae92e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user