Skip to content

Commit

Permalink
[e] (0) More examples for the new features.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@1654 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 21, 2008
1 parent efd1791 commit d0d6bb2
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
29 changes: 29 additions & 0 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -14396,6 +14396,18 @@ the time Marco had stuck his tongue out...&lt;/p></pre>
attribute.</p>
</div>

<div class=example>
<p>In this example, a gadget from another site is embedded. The gadget has
scripting and forms enabled, and the origin sandbox restrictions are
lifted, allowing the gadget to communicate with its originating server.
The sandbox is still useful, however, as it disables plugins and popups,
thus reducing the risk of the user being exposed to malware and other
annoyances.</p>

<pre>&lt;iframe sandbox="allow-same-origin allow-forms allow-scripts"
src="http://maps.example.com/embedded.html">&lt;/iframe></pre>
</div>

<hr>

<p>The <dfn id=seamless
Expand Down Expand Up @@ -14502,6 +14514,23 @@ the time Marco had stuck his tongue out...&lt;/p></pre>
href="#nested0">nested browsing context</a> is <a href="#navigate"
title=navigate>navigated</a> to another origin.

<div class=example>
<p>In this example, the site's navigation is embedded using a client-side
include using an <code><a href="#iframe">iframe</a></code>. Any links in
the <code><a href="#iframe">iframe</a></code> will, in new user agents,
be automatically opened in the <code><a
href="#iframe">iframe</a></code>'s parent browsing context; for legacy
user agents, the site could also include a <code><a
href="#base">base</a></code> element with a <code
title=attr-base-target><a href="#target">target</a></code> attribute with
the value <code title="">_parent</code>. Similarly, in new user agents
the styles of the parent page will be automatically applied to the
contents of the frame, but to support legacy user agents authors might
wish to include the styles explicitly.</p>

<pre>&lt;nav>&lt;iframe seamless src="nav.include.html">&lt;/iframe>&lt;/nav></pre>
</div>

<hr>

<p>An <code><a href="#iframe">iframe</a></code> element never has <a
Expand Down
36 changes: 36 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -12442,6 +12442,20 @@ the time Marco had stuck his tongue out...&lt;/p></pre>

</div>

<div class="example">

<p>In this example, a gadget from another site is embedded. The
gadget has scripting and forms enabled, and the origin sandbox
restrictions are lifted, allowing the gadget to communicate with
its originating server. The sandbox is still useful, however, as it
disables plugins and popups, thus reducing the risk of the user
being exposed to malware and other annoyances.</p>

<pre>&lt;iframe sandbox="allow-same-origin allow-forms allow-scripts"
src="http://maps.example.com/embedded.html">&lt;/iframe></pre>

</div>



<hr>
Expand Down Expand Up @@ -12548,8 +12562,30 @@ the time Marco had stuck his tongue out...&lt;/p></pre>
gets unset if the <span>nested browsing context</span> is <span
title="navigate">navigated</span> to another origin.</p>

<div class="example">

<p>In this example, the site's navigation is embedded using a
client-side include using an <code>iframe</code>. Any links in the
<code>iframe</code> will, in new user agents, be automatically
opened in the <code>iframe</code>'s parent browsing context; for
legacy user agents, the site could also include a <code>base</code>
element with a <code title="attr-base-target">target</code>
attribute with the value <code title="">_parent</code>. Similarly,
in new user agents the styles of the parent page will be
automatically applied to the contents of the frame, but to support
legacy user agents authors might wish to include the styles
explicitly.</p>

<pre>&lt;nav>&lt;iframe seamless src="nav.include.html">&lt;/iframe>&lt;/nav></pre>

</div>



<hr>



<p>An <code>iframe</code> element never has <span>fallback
content</span>, as it will always create a nested <span>browsing
context</span>, regardless of whether the specified initial contents
Expand Down

0 comments on commit d0d6bb2

Please sign in to comment.