cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject spec commit: Revert "changed document.write to use document.createElement('script')"
Date Mon, 27 May 2013 19:49:19 GMT
Updated Branches:
  refs/heads/2.8.x 6aad14dce -> d909b04b5


Revert "changed document.write to use document.createElement('script')"

This reverts commit 8b1fd7d49c278d43b34b4c041f1575a1a39a664d.

This is necessary because it causes rendering issues on some ICS
devices.


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/d909b04b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/d909b04b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/d909b04b

Branch: refs/heads/2.8.x
Commit: d909b04b5965ceb5a15179d0012438caf6bc8e36
Parents: 6aad14d
Author: Max Woghiren <max.woghiren@gmail.com>
Authored: Mon May 27 15:47:01 2013 -0400
Committer: Max Woghiren <max.woghiren@gmail.com>
Committed: Mon May 27 15:48:57 2013 -0400

----------------------------------------------------------------------
 cordova-incl.js |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/d909b04b/cordova-incl.js
----------------------------------------------------------------------
diff --git a/cordova-incl.js b/cordova-incl.js
index 458e10a..c624996 100644
--- a/cordova-incl.js
+++ b/cordova-incl.js
@@ -59,9 +59,7 @@ if (PLAT) {
 }
 
 if (!window._doNotWriteCordovaScript) {
-    var script = document.createElement("script");
-    script.src = cordovaPath;
-    document.head.appendChild(script);
+    document.write('<script type="text/javascript" charset="utf-8" src="' + cordovaPath
+ '"></script>');
 }
 
 function backHome() {


Mime
View raw message