aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-05-15 13:26:07 -0700
committerJose Antonio Marquez2012-05-15 13:26:07 -0700
commit374ab6d8980b810a1c943b14a1aea07cb85389ad (patch)
tree49e541deed8c698c3f308d0d484cca716651950a /js/mediators
parentbffc9b2a4bd3480a6e369a36660ce402f7e16aba (diff)
downloadninja-374ab6d8980b810a1c943b14a1aea07cb85389ad.tar.gz
Saving body attributes
Diffstat (limited to 'js/mediators')
-rw-r--r--js/mediators/io-mediator.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/js/mediators/io-mediator.js b/js/mediators/io-mediator.js
index aa2165c7..8346c75e 100644
--- a/js/mediators/io-mediator.js
+++ b/js/mediators/io-mediator.js
@@ -224,8 +224,14 @@ exports.IoMediator = Montage.create(Component, {
224 //Injecting head and body into old document 224 //Injecting head and body into old document
225 template.file.content.document.head.innerHTML = template.head.innerHTML.replace(regexRootUrl, ''); 225 template.file.content.document.head.innerHTML = template.head.innerHTML.replace(regexRootUrl, '');
226 template.file.content.document.body.innerHTML = template.body.innerHTML.replace(regexRootUrl, ''); 226 template.file.content.document.body.innerHTML = template.body.innerHTML.replace(regexRootUrl, '');
227 227 //Copying attributes to maintain same properties as the <body>
228 228 for (var n in template.body.attributes) {
229 if (template.body.attributes[n].value) {
230 //
231 template.file.content.document.body.setAttribute(template.body.attributes[n].name, template.body.attributes[n].value);
232 }
233 }
234 //TODO: Add attribute copying for <HEAD> and <HTML>
229 235
230 /* 236 /*
231//Testing using montage clean up method 237//Testing using montage clean up method