summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/resources/file_manager/foreground/js/file_table.js2
-rw-r--r--chrome/browser/resources/file_manager/foreground/js/ui/search_box.js2
-rw-r--r--chrome/browser/resources/signin_internals/signin_internals.js2
-rw-r--r--chrome/browser/resources/sync_internals/about.js2
-rw-r--r--chrome/browser/resources/sync_internals/sync_search.js2
-rw-r--r--native_client_sdk/src/examples/api/file_io/example.js2
-rw-r--r--native_client_sdk/src/examples/api/var_dictionary/example.js2
-rw-r--r--native_client_sdk/src/examples/demo/drive/example.js4
-rw-r--r--native_client_sdk/src/examples/demo/nacl_io/example.js2
-rw-r--r--native_client_sdk/src/gonacl_appengine/static/frame.js2
10 files changed, 11 insertions, 11 deletions
diff --git a/chrome/browser/resources/file_manager/foreground/js/file_table.js b/chrome/browser/resources/file_manager/foreground/js/file_table.js
index 2c9d741..3280de3 100644
--- a/chrome/browser/resources/file_manager/foreground/js/file_table.js
+++ b/chrome/browser/resources/file_manager/foreground/js/file_table.js
@@ -983,7 +983,7 @@ filelist.decorateListItem = function(li, entry, metadataCache) {
*/
set: function(v) {
if (v)
- this.setAttribute('selected');
+ this.setAttribute('selected', '');
else
this.removeAttribute('selected');
var checkBox = this.querySelector('input.file-checkbox');
diff --git a/chrome/browser/resources/file_manager/foreground/js/ui/search_box.js b/chrome/browser/resources/file_manager/foreground/js/ui/search_box.js
index edc638a..30a7ea7 100644
--- a/chrome/browser/resources/file_manager/foreground/js/ui/search_box.js
+++ b/chrome/browser/resources/file_manager/foreground/js/ui/search_box.js
@@ -117,7 +117,7 @@ SearchBox.AutocompleteListItem_ = function(document, item) {
text.className = 'detail-text';
if (item.isHeaderItem) {
- icon.setAttribute('search-icon');
+ icon.setAttribute('search-icon', '');
text.innerHTML =
strf('SEARCH_DRIVE_HTML', util.htmlEscape(item.searchQuery));
} else {
diff --git a/chrome/browser/resources/signin_internals/signin_internals.js b/chrome/browser/resources/signin_internals/signin_internals.js
index cf2a305..17555f2 100644
--- a/chrome/browser/resources/signin_internals/signin_internals.js
+++ b/chrome/browser/resources/signin_internals/signin_internals.js
@@ -26,7 +26,7 @@ function highlightIfChanged(node, oldVal, newVal) {
node.addEventListener('webkitAnimationEnd',
function() { this.removeAttribute('highlighted'); },
false);
- node.setAttribute('highlighted');
+ node.setAttribute('highlighted', '');
}
}
diff --git a/chrome/browser/resources/sync_internals/about.js b/chrome/browser/resources/sync_internals/about.js
index ba92bfc..d915fd7 100644
--- a/chrome/browser/resources/sync_internals/about.js
+++ b/chrome/browser/resources/sync_internals/about.js
@@ -14,7 +14,7 @@ function highlightIfChanged(node, oldVal, newVal) {
// listeners. There can be only one listener per event at a time.
// Reference: https://developer.mozilla.org/en/DOM/element.addEventListener
node.addEventListener('webkitAnimationEnd', clearHighlight, false);
- node.setAttribute('highlighted');
+ node.setAttribute('highlighted', '');
}
}
diff --git a/chrome/browser/resources/sync_internals/sync_search.js b/chrome/browser/resources/sync_internals/sync_search.js
index d912046..9ed2456 100644
--- a/chrome/browser/resources/sync_internals/sync_search.js
+++ b/chrome/browser/resources/sync_internals/sync_search.js
@@ -63,7 +63,7 @@ cr.define('chrome.sync', function() {
doSearch(query, function(nodes, error) {
if (error) {
statusControl.textContent = 'Error: ' + error;
- queryControl.setAttribute('error');
+ queryControl.setAttribute('error', '');
} else {
statusControl.textContent =
'Found ' + nodes.length + ' nodes in ' +
diff --git a/native_client_sdk/src/examples/api/file_io/example.js b/native_client_sdk/src/examples/api/file_io/example.js
index 6143fd5..81a4717 100644
--- a/native_client_sdk/src/examples/api/file_io/example.js
+++ b/native_client_sdk/src/examples/api/file_io/example.js
@@ -45,7 +45,7 @@ function onRadioClicked(e) {
if (functionEls[i].id === divId)
functionEls[i].removeAttribute('hidden');
else
- functionEls[i].setAttribute('hidden');
+ functionEls[i].setAttribute('hidden', '');
}
}
diff --git a/native_client_sdk/src/examples/api/var_dictionary/example.js b/native_client_sdk/src/examples/api/var_dictionary/example.js
index d0c58b7..508dad1 100644
--- a/native_client_sdk/src/examples/api/var_dictionary/example.js
+++ b/native_client_sdk/src/examples/api/var_dictionary/example.js
@@ -29,7 +29,7 @@ function onRadioClicked(e) {
if (functionEls[i].id === divId)
functionEls[i].removeAttribute('hidden');
else
- functionEls[i].setAttribute('hidden');
+ functionEls[i].setAttribute('hidden', '');
}
}
diff --git a/native_client_sdk/src/examples/demo/drive/example.js b/native_client_sdk/src/examples/demo/drive/example.js
index ae6326f..95956b2 100644
--- a/native_client_sdk/src/examples/demo/drive/example.js
+++ b/native_client_sdk/src/examples/demo/drive/example.js
@@ -15,7 +15,7 @@ function onGetAuthToken(authToken) {
var signInEl = document.getElementById('signIn');
var getFileEl = document.getElementById('getFile');
if (authToken) {
- signInEl.setAttribute('hidden');
+ signInEl.setAttribute('hidden', '');
getFileEl.removeAttribute('hidden');
window.authToken = authToken;
@@ -26,7 +26,7 @@ function onGetAuthToken(authToken) {
// this app. Display a button to let the user sign in and authorize this
// application.
signInEl.removeAttribute('hidden');
- getFileEl.setAttribute('hidden');
+ getFileEl.setAttribute('hidden', '');
}
};
diff --git a/native_client_sdk/src/examples/demo/nacl_io/example.js b/native_client_sdk/src/examples/demo/nacl_io/example.js
index 0ccaf7d..9c0a513f 100644
--- a/native_client_sdk/src/examples/demo/nacl_io/example.js
+++ b/native_client_sdk/src/examples/demo/nacl_io/example.js
@@ -46,7 +46,7 @@ function onRadioClicked(e) {
if (functionEls[i].id === divId)
functionEls[i].removeAttribute('hidden');
else
- functionEls[i].setAttribute('hidden');
+ functionEls[i].setAttribute('hidden', '');
}
}
diff --git a/native_client_sdk/src/gonacl_appengine/static/frame.js b/native_client_sdk/src/gonacl_appengine/static/frame.js
index 580d994..eca667e 100644
--- a/native_client_sdk/src/gonacl_appengine/static/frame.js
+++ b/native_client_sdk/src/gonacl_appengine/static/frame.js
@@ -138,7 +138,7 @@ function createIframe(src) {
iframeEl.setAttribute('width', '100%');
iframeEl.setAttribute('height', '100%');
iframeEl.src = src;
- iframeEl.setAttribute('hidden');
+ iframeEl.setAttribute('hidden', '');
iframeEl.onload = function() {
if (oldIframeEl)
oldIframeEl.parentNode.removeChild(oldIframeEl);