Skip to content

Commit 03e6366

Browse files
committed
replace innerText with textContent
1 parent 2d416eb commit 03e6366

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/database/src/realtime/BrowserPollConnection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ export class FirebaseIFrameScriptHolder {
548548
//We have to actually remove all of the html inside this iframe before removing it from the
549549
//window, or IE will continue loading and executing the script tags we've already added, which
550550
//can lead to some errors being thrown. Setting innerText seems to be the safest way to do this.
551-
this.myIFrame.doc.body.innerText = '';
551+
this.myIFrame.doc.body.textContent = '';
552552
setTimeout(() => {
553553
if (this.myIFrame !== null) {
554554
document.body.removeChild(this.myIFrame);

0 commit comments

Comments
 (0)