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

Unified Diff: chrome/common/extensions/docs/templates/articles/app_external.html

Issue 249083005: Remove document.write reference in sandboxing docs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/templates/articles/app_external.html
diff --git a/chrome/common/extensions/docs/templates/articles/app_external.html b/chrome/common/extensions/docs/templates/articles/app_external.html
index 3023a4b22755211abe3db568975b239233fbccf7..609b3b9cfb4daa75d87375bbbb2b9e8711d6a379 100644
--- a/chrome/common/extensions/docs/templates/articles/app_external.html
+++ b/chrome/common/extensions/docs/templates/articles/app_external.html
@@ -141,8 +141,7 @@ but you won't be able to use the cool new stuff.
<h3 id="inline_scripts">Use inline scripts in sandbox</h3>
<p>
-Here's a sample sandboxed page
-which uses an inline script and <code>eval()</code>:
+Here's a sample sandboxed page which uses an inline script and <code>eval()</code>:
</p>
<pre data-filename="sandboxed.html">
@@ -150,8 +149,7 @@ which uses an inline script and <code>eval()</code>:
&lt;body>
&lt;h1>Woot&lt;/h1>
&lt;script>
- document.write('I am an inline script.&lt;br>');
- eval('document.write(\'I am an eval-ed inline script.\');');
+ eval('console.log(\'I am an eval-ed inline script.\')');
&lt;/script>
&lt;/body>
&lt;/html>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698