cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From za...@apache.org
Subject [1/2] spec commit: Replace innerText with more standard textContent to fix manual battery test for firefox OS
Date Tue, 20 May 2014 06:20:06 GMT
Repository: cordova-mobile-spec
Updated Branches:
  refs/heads/master b0ef368c4 -> 1b7ca6be5


Replace innerText with more standard textContent to fix manual battery test for firefox OS


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/26b5b3f2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/26b5b3f2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/26b5b3f2

Branch: refs/heads/master
Commit: 26b5b3f245828553e4a96983a61aa58b1ab39c60
Parents: c351554
Author: Rodrigo Silveira <rodrigos@outlook.com>
Authored: Thu May 1 15:01:00 2014 -0700
Committer: Rodrigo Silveira <rodrigos@outlook.com>
Committed: Thu May 1 15:01:00 2014 -0700

----------------------------------------------------------------------
 battery/index.html | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/26b5b3f2/battery/index.html
----------------------------------------------------------------------
diff --git a/battery/index.html b/battery/index.html
index 70b0db7..254be0c 100644
--- a/battery/index.html
+++ b/battery/index.html
@@ -51,22 +51,22 @@
 
     /* Battery */
     function updateInfo(info) {
-        document.getElementById('level').innerText = info.level;
-        document.getElementById('isPlugged').innerText = info.isPlugged;
+        document.getElementById('level').textContent = info.level;
+        document.getElementById('isPlugged').textContent = info.isPlugged;
         if (info.level > 5) {
-            document.getElementById('crit').innerText = "false";
+            document.getElementById('crit').textContent = "false";
         }
         if (info.level > 20) {
-            document.getElementById('low').innerText = "false";
+            document.getElementById('low').textContent = "false";
         }
     }
     
     function batteryLow(info) {
-        document.getElementById('low').innerText = "true";
+        document.getElementById('low').textContent = "true";
     }
     
     function batteryCritical(info) {
-        document.getElementById('crit').innerText = "true";
+        document.getElementById('crit').textContent = "true";
     }
     
     function addBattery() {


Mime
View raw message