- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 24 Jul 2008 08:09:03 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv28051
Modified Files:
Overview.html
Log Message:
Support <embed> with no src=''. (whatwg r1929)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1119
retrieving revision 1.1120
diff -u -d -r1.1119 -r1.1120
--- Overview.html 24 Jul 2008 06:20:21 -0000 1.1119
+++ Overview.html 24 Jul 2008 08:09:00 -0000 1.1120
@@ -16570,14 +16570,29 @@
interactive content.
<p>The <dfn id=src3 title=attr-embed-src><code>src</code></dfn> attribute
- gives the address of the resource being embedded. The attribute must be
- present and contain a <a href="#valid">valid URL</a>.
+ gives the address of the resource being embedded. The attribute, if
+ present, must contain a <a href="#valid">valid URL</a>.
- <p>If the <code title=attr-embed-src><a href="#src3">src</a></code>
- attribute is missing, then the <code><a href="#embed">embed</a></code>
- element must be ignored (it represents nothing).
+ <p>The <dfn id=type4 title=attr-embed-type><code>type</code></dfn>
+ attribute, if present, gives the MIME type of the plugin to instantiate.
+ The value must be a valid MIME type, optionally with parameters. If both
+ the <code title=attr-embed-type><a href="#type4">type</a></code> attribute
+ and the <code title=attr-embed-src><a href="#src3">src</a></code>
+ attribute are present, then the <code title=attr-embed-type><a
+ href="#type4">type</a></code> attribute must specify the same type as the
+ <a href="#content-type5" title=Content-Type>explicit Content-Type
+ metadata</a> of the resource given by the <code title=attr-embed-src><a
+ href="#src3">src</a></code> attribute. <a
+ href="#references">[RFC2046]</a>
- <p id=sandboxPluginEmbed>If the <a href="#sandboxed0">sandboxed plugins
+ <p>When the element is created with neither a <code title=attr-embed-src><a
+ href="#src3">src</a></code> attribute nor a <code title=attr-embed-type><a
+ href="#type4">type</a></code> attribute, and when attributes are removed
+ such that neither attribute is present on the element anymore, any plugins
+ instantiated for the element must be removed, and the <code><a
+ href="#embed">embed</a></code> element represents nothing.
+
+ <p id=sandboxPluginEmbed>When the <a href="#sandboxed0">sandboxed plugins
browsing context flag</a> is set on the <a href="#browsing1">browsing
context</a> for which the <code><a href="#embed">embed</a></code>
element's document is the <a href="#active">active document</a>, then the
@@ -16598,36 +16613,20 @@
<p>When the element is created with a <code title=attr-embed-src><a
href="#src3">src</a></code> attribute, and whenever the <code
title=attr-embed-src><a href="#src3">src</a></code> attribute is
- subsequently set, if the element is not in a sandboxed browsing context,
- user agents should fetch the specified resource, find an appropriate <a
- href="#plugin">plugin</a> it based on the <a href="#type-of"
+ subsequently set, and whenever the <code title=attr-embed-type><a
+ href="#type4">type</a></code> attribute is set or removed while the
+ element has a <code title=attr-embed-src><a href="#src3">src</a></code>
+ attribute, if the element is not in a sandboxed browsing context, user
+ agents should fetch the specified resource, find and instantiate an
+ appropriate <a href="#plugin">plugin</a> based on the <a href="#type-of"
title=concept-embed-type>content's type</a>, and hand that <a
- href="#plugin">plugin</a> the content of the resource. <!-- Note that this
+ href="#plugin">plugin</a> the content of the resource, replacing any
+ previously instantiated plugin for the element. <!-- Note that this
doesn't happen when the base URL changes. -->
- If the <a href="#plugin">plugin</a> supports a scriptable interface, the
- <code><a href="#htmlembedelement">HTMLEmbedElement</a></code> object
- representing the element should expose that interfaces.
<p>Fetching the resource must <a href="#delays">delay the <code
title=event-load>load</code> event</a>.
- <p>Any (namespace-less) attribute may be specified on the <code><a
- href="#embed">embed</a></code> element, so long as its name is <a
- href="#xml-compatible">XML-compatible</a>.
-
- <p>The user agent should pass the names and values of all the attributes of
- the <code><a href="#embed">embed</a></code> element that have no namespace
- to the <a href="#plugin">plugin</a> used.
-
- <p>The <dfn id=type4 title=attr-embed-type><code>type</code></dfn>
- attribute, if present, gives the MIME type of the linked resource. The
- value must be a valid MIME type, optionally with parameters. If the
- attribute is present, its value must specify the same type as the <a
- href="#content-type5" title=Content-Type>explicit Content-Type
- metadata</a> of the resource given by the <code title=attr-embed-src><a
- href="#src3">src</a></code> attribute. <a
- href="#references">[RFC2046]</a>
-
<p>The <dfn id=type-of title=concept-embed-type>type of the content</dfn>
being embedded is defined as follows:
@@ -16673,11 +16672,37 @@
error responses (e.g. HTTP 500 Internal Server Error codes can still
contain plugin data).
+ <p>When the element is created with a <code title=attr-embed-type><a
+ href="#type4">type</a></code> attribute and no <code
+ title=attr-embed-src><a href="#src3">src</a></code> attribute, and
+ whenever the <code title=attr-embed-type><a href="#type4">type</a></code>
+ attribute is subsequently set, so long as no <code title=attr-embed-src><a
+ href="#src3">src</a></code> attribute is set, and whenever the <code
+ title=attr-embed-src><a href="#src3">src</a></code> attribute is removed
+ when the element has a <code title=attr-embed-type><a
+ href="#type4">type</a></code> attribute, if the element is not in a
+ sandboxed browsing context, user agents should find and instantiate an
+ appropriate <a href="#plugin">plugin</a> based on the value of the <code
+ title=attr-embed-type><a href="#type4">type</a></code> attribute.
+
+ <p>Any (namespace-less) attribute may be specified on the <code><a
+ href="#embed">embed</a></code> element, so long as its name is <a
+ href="#xml-compatible">XML-compatible</a>.
+
+ <p>The user agent should pass the names and values of all the attributes of
+ the <code><a href="#embed">embed</a></code> element that have no namespace
+ to the <a href="#plugin">plugin</a> used, when it is instantiated.
+
+ <p>If the <a href="#plugin">plugin</a> instantiated for the <code><a
+ href="#embed">embed</a></code> element supports a scriptable interface,
+ the <code><a href="#htmlembedelement">HTMLEmbedElement</a></code> object
+ representing the element should expose that interface while the element is
+ instantiated.
+
<p>The <code><a href="#embed">embed</a></code> element has no <a
- href="#fallback">fallback content</a>. If the user agent can't display the
- specified resource, e.g. because the given type is not supported, then the
- user agent must use a default plugin for the content. (This default could
- be as simple as saying "Unsupported Format", of course.)
+ href="#fallback">fallback content</a>. If the user agent can't find a
+ suitable plugin, then the user agent must use a default plugin. (This
+ default could be as simple as saying "Unsupported Format".)
<p>The <code><a href="#embed">embed</a></code> element supports <a
href="#dimension0">dimension attributes</a>.
Received on Thursday, 24 July 2008 08:09:37 UTC