From d716a08ab4e250dba817a222c3416f2e325beff7 Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Sat, 9 Jun 2012 21:00:09 -0700 Subject: Re-adding temp doc type Adding a demo fix to include the document type, it is removed because comments are not supported currently, so we must added in manually. The YouTube component breaks, it does not support any doctype, hence, the component must have a bug filed against it, we MUST include doc types with our files. --- js/document/mediators/template.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/document/mediators/template.js') diff --git a/js/document/mediators/template.js b/js/document/mediators/template.js index 4c72314a..50fad1c3 100755 --- a/js/document/mediators/template.js +++ b/js/document/mediators/template.js @@ -613,8 +613,8 @@ exports.TemplateDocumentMediator = Montage.create(Component, { } else { cleanHTML = template.file.content.document.documentElement.outerHTML.replace(/(\b(?:(?:https?|ftp|file|[A-Za-z]+):\/\/|www\.|ftp\.)(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))/gi, parseNinjaRootUrl.bind(this)); } - //TODO: Remove, this is a temp hack - cleanHTML = cleanHTML; + //TODO: Remove, this is a temp hack to maintain a doc type on HTML files + cleanHTML = ''+cleanHTML; // function parseNinjaRootUrl(url) { if (url.indexOf(this.application.ninja.coreIoApi.rootUrl) !== -1) { -- cgit v1.2.3