Skip to content

Commit

Permalink
[] (0) Rename the sandbox='' values to be more approachable.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@1649 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 21, 2008
1 parent 3587c97 commit a426662
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 31 deletions.
35 changes: 15 additions & 20 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -14271,12 +14271,12 @@ the time Marco had stuck his tongue out...&lt;/p></pre>
content hosted by the <code><a href="#iframe">iframe</a></code>. Its value
must be an <a href="#unordered">unordered set of unique space-separated
tokens</a>. The allowed values are <code
title=attr-iframe-sandbox-xxx_origin_please_suggest_a_better_name><a
href="#xxxoriginpleasesuggestabettername">xxx_origin_please_suggest_a_better_name</a></code>,
<code title=attr-iframe-sandbox-unrestricted-forms><a
href="#unrestricted-forms">unrestricted-forms</a></code>, and <code
title=attr-iframe-sandbox-unrestricted-scripts><a
href="#unrestricted-scripts">unrestricted-scripts</a></code>.
title=attr-iframe-sandbox-allow-same-origin><a
href="#allow-same-origin">allow-same-origin</a></code>, <code
title=attr-iframe-sandbox-allow-forms><a
href="#allow-forms">allow-forms</a></code>, and <code
title=attr-iframe-sandbox-allow-scripts><a
href="#allow-scripts">allow-scripts</a></code>.

<p>While the <code title=attr-iframe-sandbox><a
href="#sandbox">sandbox</a></code> attribute is specified, the <code><a
Expand Down Expand Up @@ -14315,8 +14315,8 @@ the time Marco had stuck his tongue out...&lt;/p></pre>
unless the <code title=attr-iframe-sandbox><a
href="#sandbox">sandbox</a></code> attribute's value, when <a
href="#split" title="split a string on spaces">split on spaces</a>, is
found to have the <dfn id=xxxoriginpleasesuggestabettername
title=attr-iframe-sandbox-xxx_origin_please_suggest_a_better_name><code>xxx_origin_please_suggest_a_better_name</code></dfn>
found to have the <dfn id=allow-same-origin
title=attr-iframe-sandbox-allow-same-origin><code>allow-same-origin</code></dfn>
keyword set

<dd>
Expand All @@ -14325,10 +14325,9 @@ the time Marco had stuck his tongue out...&lt;/p></pre>
title=origin>same-origin policy</a>.</p>

<div class=note>
<p>The <code
title=attr-iframe-sandbox-xxx_origin_please_suggest_a_better_name><a
href="#xxxoriginpleasesuggestabettername">xxx_origin_please_suggest_a_better_name</a></code>
attribute is intended for two cases.</p>
<p>The <code title=attr-iframe-sandbox-allow-same-origin><a
href="#allow-same-origin">allow-same-origin</a></code> attribute is
intended for two cases.</p>

<p>First, it can be used to allow content from the same site to be
sandboxed to disable scripting, while still allowing access to the DOM
Expand All @@ -14340,16 +14339,12 @@ the time Marco had stuck his tongue out...&lt;/p></pre>
site, using the database APIs to store data, etc.</p>
</div>

<p class=big-issue>Please don't implement this keyword using the name
"xxx_origin_please_suggest_a_better_name" -- please suggest a better
name first!</p>

<dt>The <dfn id=sandboxed2>sandboxed forms browsing context flag</dfn>,
unless the <code title=attr-iframe-sandbox><a
href="#sandbox">sandbox</a></code> attribute's value, when <a
href="#split" title="split a string on spaces">split on spaces</a>, is
found to have the <dfn id=unrestricted-forms
title=attr-iframe-sandbox-unrestricted-forms><code>unrestricted-forms</code></dfn>
found to have the <dfn id=allow-forms
title=attr-iframe-sandbox-allow-forms><code>allow-forms</code></dfn>
keyword set

<dd>
Expand All @@ -14359,8 +14354,8 @@ the time Marco had stuck his tongue out...&lt;/p></pre>
unless the <code title=attr-iframe-sandbox><a
href="#sandbox">sandbox</a></code> attribute's value, when <a
href="#split" title="split a string on spaces">split on spaces</a>, is
found to have the <dfn id=unrestricted-scripts
title=attr-iframe-sandbox-unrestricted-scripts><code>unrestricted-scripts</code></dfn>
found to have the <dfn id=allow-scripts
title=attr-iframe-sandbox-allow-scripts><code>allow-scripts</code></dfn>
keyword set

<dd>
Expand Down
18 changes: 7 additions & 11 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -12287,11 +12287,11 @@ the time Marco had stuck his tongue out...&lt;/p></pre>
any content hosted by the <code>iframe</code>. Its value must be an
<span>unordered set of unique space-separated tokens</span>. The
allowed values are <code
title="attr-iframe-sandbox-xxx_origin_please_suggest_a_better_name">xxx_origin_please_suggest_a_better_name</code>,
title="attr-iframe-sandbox-allow-same-origin">allow-same-origin</code>,
<code
title="attr-iframe-sandbox-unrestricted-forms">unrestricted-forms</code>,
title="attr-iframe-sandbox-allow-forms">allow-forms</code>,
and <code
title="attr-iframe-sandbox-unrestricted-scripts">unrestricted-scripts</code>.</p>
title="attr-iframe-sandbox-allow-scripts">allow-scripts</code>.</p>

<p>While the <code title="attr-iframe-sandbox">sandbox</code>
attribute is specified, the <code>iframe</code> element's
Expand Down Expand Up @@ -12338,7 +12338,7 @@ the time Marco had stuck his tongue out...&lt;/p></pre>
the <code title="attr-iframe-sandbox">sandbox</code> attribute's
value, when <span title="split a string on spaces">split on
spaces</span>, is found to have the <dfn
title="attr-iframe-sandbox-xxx_origin_please_suggest_a_better_name"><code>xxx_origin_please_suggest_a_better_name</code></dfn>
title="attr-iframe-sandbox-allow-same-origin"><code>allow-same-origin</code></dfn>
keyword set</dt>

<dd>
Expand All @@ -12350,7 +12350,7 @@ the time Marco had stuck his tongue out...&lt;/p></pre>
<div class="note">

<p>The <code
title="attr-iframe-sandbox-xxx_origin_please_suggest_a_better_name">xxx_origin_please_suggest_a_better_name</code>
title="attr-iframe-sandbox-allow-same-origin">allow-same-origin</code>
attribute is intended for two cases.</p>

<p>First, it can be used to allow content from the same site to
Expand All @@ -12365,18 +12365,14 @@ the time Marco had stuck his tongue out...&lt;/p></pre>

</div>

<p class="big-issue">Please don't implement this keyword using the
name "xxx_origin_please_suggest_a_better_name" -- please suggest a
better name first!</p>

</dd>


<dt>The <dfn>sandboxed forms browsing context flag</dfn>, unless
the <code title="attr-iframe-sandbox">sandbox</code> attribute's
value, when <span title="split a string on spaces">split on
spaces</span>, is found to have the <dfn
title="attr-iframe-sandbox-unrestricted-forms"><code>unrestricted-forms</code></dfn>
title="attr-iframe-sandbox-allow-forms"><code>allow-forms</code></dfn>
keyword set</dt>

<dd>
Expand All @@ -12391,7 +12387,7 @@ the time Marco had stuck his tongue out...&lt;/p></pre>
the <code title="attr-iframe-sandbox">sandbox</code> attribute's
value, when <span title="split a string on spaces">split on
spaces</span>, is found to have the <dfn
title="attr-iframe-sandbox-unrestricted-scripts"><code>unrestricted-scripts</code></dfn>
title="attr-iframe-sandbox-allow-scripts"><code>allow-scripts</code></dfn>
keyword set</dt>

<dd>
Expand Down

0 comments on commit a426662

Please sign in to comment.