Commit 83ba05d0 authored by kalman@chromium.org's avatar kalman@chromium.org

Remove document.write reference in sandboxing docs.

R=miket@chromium.org
BUG=154452

Review URL: https://codereview.chromium.org/249083005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266361 0039d316-1c4b-4281-b951-d872f2087c98
parent 4dcc4b9a
......@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment