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 ab358dc commit 1637b4fCopy full SHA for 1637b4f
js/transitions.js
@@ -39,7 +39,8 @@
39
40
var displayBar = function (bar, container) {
41
if (container) {
42
- container.innerHTML = bar.innerHTML;
+ container.innerHTML = '';
43
+ container.appendChild(bar);
44
} else {
45
// per Ratchet's CSS, bar elements must be the first thing in <body>
46
// here we assume `.content` is an immediate child of <body>
@@ -115,7 +116,8 @@
115
116
transitionContent(newContentDiv, existingContentDiv,
117
transition, complete);
118
- document.body.innerHTML = contents.innerHTML;
119
+ document.body.innerHTML = '';
120
+ document.body.appendChild(contents);
121
complete && complete();
122
}
123
};
0 commit comments