diff --git a/js/transitions.js b/js/transitions.js index ab08e92..e79ba47 100644 --- a/js/transitions.js +++ b/js/transitions.js @@ -39,7 +39,8 @@ var displayBar = function (bar, container) { if (container) { - container.innerHTML = bar.innerHTML; + container.innerHTML = ''; + container.appendChild(bar); } else { // per Ratchet's CSS, bar elements must be the first thing in // here we assume `.content` is an immediate child of @@ -115,7 +116,8 @@ transitionContent(newContentDiv, existingContentDiv, transition, complete); } else { - document.body.innerHTML = contents.innerHTML; + document.body.innerHTML = ''; + document.body.appendChild(contents); complete && complete(); } };