We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5137df6 commit a323cc9Copy full SHA for a323cc9
writeCapture.js
@@ -303,11 +303,15 @@
303
}
304
function immediateWrite(s) {
305
var target = $.$(context.target);
306
- target.parentNode.innerHTML += s;
+ var div = doc.createElement('div');
307
+ target.parentNode.insertBefore(div,target);
308
+ $.replaceWith(div,sanitize(s));
309
310
function immediateWriteln(s) {
311
- target.parentNode.innerHTML += s + '\n';
312
313
314
+ $.replaceWith(div,sanitize(s) + '\n');
315
316
function makeTemp(id) {
317
var t = doc.createElement('div');
0 commit comments