Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6261)

Unified Diff: chrome/common/extensions/docs/examples/api/tabs/inspector/tabs_api.html

Issue 411008: Remove use of innerHTML and Toolstrips from example extensions (Closed)
Patch Set: cr changes Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/examples/api/tabs/inspector/tabs_api.html
diff --git a/chrome/common/extensions/docs/examples/api/tabs/inspector/tabs_api.html b/chrome/common/extensions/docs/examples/api/tabs/inspector/tabs_api.html
index e8047abb1e3dce602ac492d73a2d27cf7e0c2510..159cb27898c4cd3c77f07a9412e573c7d9f09df7 100644
--- a/chrome/common/extensions/docs/examples/api/tabs/inspector/tabs_api.html
+++ b/chrome/common/extensions/docs/examples/api/tabs/inspector/tabs_api.html
@@ -131,12 +131,13 @@ function removeTab(tabId) {
}
function appendToLog(logLine) {
- var log = document.getElementById('log');
- log.innerHTML = '<div> &gt;&nbsp;' + logLine + '</div>' + log.innerHTML;
+ document.getElementById('log')
+ .appendChild(document.createElement('div'))
+ .innerText = "> " + logLine;
}
function clearLog() {
- document.getElementById('log').innerHTML = '';
+ document.getElementById('log').innerText = '';
}
chrome.windows.onCreated.addListener(function(createInfo) {

Powered by Google App Engine
This is Rietveld 408576698