spec/Overview.html 1.1120 1929 Support <embed> with no src=''. (whatwg

Support <embed> with no src=''. (whatwg r1929)

type of the content
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1120.html#type-of
src
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1120.html#src3
HTMLEmbedElement
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1120.html#htmlembedelement
When the sandboxed plugins browsing context flag is set on the browsing context for which the embed element's document is the active document, then the user agent must render the embed element in a manner that conveys that the plugin was disabled. The user agent may offer the user the option to override the sandbox and instantiate the plugin anyway; if the user invokes such an option, the user agent must act as if the sandboxed plugins browsing context flag was not set for the purposes of this element.
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1120.html#sandboxPluginEmbed
type
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1120.html#type4

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1119&r2=1.1120&f=h
http://html5.org/tools/web-apps-tracker?from=1928&to=1929

===================================================================
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:17:58 UTC