[html5] r8811 - [giow] (3) Add getSVGDocument() to object and iframe also, with the same definit [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Sep 24 12:02:48 PDT 2014


Author: ianh
Date: 2014-09-24 12:02:43 -0700 (Wed, 24 Sep 2014)
New Revision: 8811

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Add getSVGDocument() to object and iframe also, with the same definition as for embed.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=25940

Modified: complete.html
===================================================================
--- complete.html	2014-09-24 18:54:51 UTC (rev 8810)
+++ complete.html	2014-09-24 19:02:43 UTC (rev 8811)
@@ -19894,6 +19894,7 @@
   attribute DOMString <a href=#dom-dim-height id=the-iframe-element:dom-dim-height>height</a>;
   readonly attribute <a href=#document id=the-iframe-element:document>Document</a>? <a href=#dom-iframe-contentdocument id=the-iframe-element:dom-iframe-contentdocument>contentDocument</a>;
   readonly attribute <a href=#windowproxy id=the-iframe-element:windowproxy>WindowProxy</a>? <a href=#dom-iframe-contentwindow id=the-iframe-element:dom-iframe-contentwindow>contentWindow</a>;
+  <a href=#document id=the-iframe-element:document-2>Document</a> <a href=#dom-media-getsvgdocument id=the-iframe-element:dom-media-getsvgdocument>getSVGDocument</a>();
 
   // <a href="#HTMLIFrameElement-partial">also has obsolete members</a>
 };</pre>
@@ -19999,7 +20000,7 @@
   from a document</a>, the user agent must <a href=#a-browsing-context-is-discarded id=the-iframe-element:a-browsing-context-is-discarded>discard</a> the <a href=#nested-browsing-context id=the-iframe-element:nested-browsing-context-6>nested browsing context</a>, if any.</p>
 
   <p class=note>This happens without any <code id=the-iframe-element:event-unload><a href=#event-unload>unload</a></code> events firing
-  (the <a href=#nested-browsing-context id=the-iframe-element:nested-browsing-context-7>nested browsing context</a> and its <code id=the-iframe-element:document-2><a href=#document>Document</a></code> are <em><a href=#a-browsing-context-is-discarded id=the-iframe-element:a-browsing-context-is-discarded-2>discarded</a></em>, not <em><a href=#unload-a-document id=the-iframe-element:unload-a-document>unloaded</a></em>).</p>
+  (the <a href=#nested-browsing-context id=the-iframe-element:nested-browsing-context-7>nested browsing context</a> and its <code id=the-iframe-element:document-3><a href=#document>Document</a></code> are <em><a href=#a-browsing-context-is-discarded id=the-iframe-element:a-browsing-context-is-discarded-2>discarded</a></em>, not <em><a href=#unload-a-document id=the-iframe-element:unload-a-document>unloaded</a></em>).</p>
 
   
 
@@ -20017,7 +20018,7 @@
   <dl class=switch><dt>If the <code id=the-iframe-element:attr-iframe-srcdoc-13><a href=#attr-iframe-srcdoc>srcdoc</a></code> attribute is specified<dd><p><a href=#navigate id=the-iframe-element:navigate>Navigate</a> the element's <a href=#child-browsing-context id=the-iframe-element:child-browsing-context>child browsing context</a>
    to a resource whose <a href=#content-type id=the-iframe-element:content-type>Content-Type</a> is <code id=the-iframe-element:text/html><a href=#text/html>text/html</a></code>, whose <a href=#url id=the-iframe-element:url-2>URL</a>
    is <code id=the-iframe-element:about:srcdoc><a href=#about:srcdoc>about:srcdoc</a></code>, and whose data consists of the value of the attribute. The
-   resulting <code id=the-iframe-element:document-3><a href=#document>Document</a></code> must be considered <a href=#an-iframe-srcdoc-document id=the-iframe-element:an-iframe-srcdoc-document-3>an <code>iframe</code> <code>srcdoc</code> document</a>.<dt>Otherwise, if the element has no <code id=the-iframe-element:attr-iframe-src-5><a href=#attr-iframe-src>src</a></code> attribute
+   resulting <code id=the-iframe-element:document-4><a href=#document>Document</a></code> must be considered <a href=#an-iframe-srcdoc-document id=the-iframe-element:an-iframe-srcdoc-document-3>an <code>iframe</code> <code>srcdoc</code> document</a>.<dt>Otherwise, if the element has no <code id=the-iframe-element:attr-iframe-src-5><a href=#attr-iframe-src>src</a></code> attribute
    specified, and the user agent is processing the <code id=the-iframe-element:the-iframe-element-11><a href=#the-iframe-element>iframe</a></code>'s attributes for the "first
    time"<dd>
 
@@ -20069,20 +20070,20 @@
   loaded</a> at the time of the new <a href=#navigate id=the-iframe-element:navigate-5>navigation</a>, then the <a href=#navigate id=the-iframe-element:navigate-6>navigation</a> must be completed with <a href=#replacement-enabled id=the-iframe-element:replacement-enabled>replacement enabled</a>.</p>
 
   <p>Similarly, if the <a href=#child-browsing-context id=the-iframe-element:child-browsing-context-4>child browsing context</a>'s <a href=#session-history id=the-iframe-element:session-history>session history</a> contained
-  only one <code id=the-iframe-element:document-4><a href=#document>Document</a></code> when the <a href=#process-the-iframe-attributes id=the-iframe-element:process-the-iframe-attributes-5>process the <code>iframe</code> attributes</a>
-  algorithm was invoked, and that was the <code id=the-iframe-element:about:blank-3><a href=#about:blank>about:blank</a></code> <code id=the-iframe-element:document-5><a href=#document>Document</a></code> created
+  only one <code id=the-iframe-element:document-5><a href=#document>Document</a></code> when the <a href=#process-the-iframe-attributes id=the-iframe-element:process-the-iframe-attributes-5>process the <code>iframe</code> attributes</a>
+  algorithm was invoked, and that was the <code id=the-iframe-element:about:blank-3><a href=#about:blank>about:blank</a></code> <code id=the-iframe-element:document-6><a href=#document>Document</a></code> created
   when the <a href=#child-browsing-context id=the-iframe-element:child-browsing-context-5>child browsing context</a> was created, then any <a href=#navigate id=the-iframe-element:navigate-7>navigation</a> required of the user agent in that algorithm must be completed
   with <a href=#replacement-enabled id=the-iframe-element:replacement-enabled-2>replacement enabled</a>.</p> 
 
-  <p>When a <code id=the-iframe-element:document-6><a href=#document>Document</a></code> in an <code id=the-iframe-element:the-iframe-element-14><a href=#the-iframe-element>iframe</a></code> is marked as <a href=#completely-loaded id=the-iframe-element:completely-loaded-2>completely
+  <p>When a <code id=the-iframe-element:document-7><a href=#document>Document</a></code> in an <code id=the-iframe-element:the-iframe-element-14><a href=#the-iframe-element>iframe</a></code> is marked as <a href=#completely-loaded id=the-iframe-element:completely-loaded-2>completely
   loaded</a>, the user agent must run the <a href=#iframe-load-event-steps id=the-iframe-element:iframe-load-event-steps-2>iframe load event steps</a> <a href=#in-parallel id=the-iframe-element:in-parallel>in parallel</a>.</p>
 
   <p class=note>A <code id=the-iframe-element:event-load><a href=#event-load>load</a></code> event is also fired at the
   <code id=the-iframe-element:the-iframe-element-15><a href=#the-iframe-element>iframe</a></code> element when it is created if no other data is loaded in it.</p>
 
-  <p>Each <code id=the-iframe-element:document-7><a href=#document>Document</a></code> has an <dfn id=iframe-load-in-progress>iframe load in progress</dfn> flag and a <dfn id=mute-iframe-load>mute
-  iframe load</dfn> flag. When a <code id=the-iframe-element:document-8><a href=#document>Document</a></code> is created, these flags must be unset for
-  that <code id=the-iframe-element:document-9><a href=#document>Document</a></code>.</p>
+  <p>Each <code id=the-iframe-element:document-8><a href=#document>Document</a></code> has an <dfn id=iframe-load-in-progress>iframe load in progress</dfn> flag and a <dfn id=mute-iframe-load>mute
+  iframe load</dfn> flag. When a <code id=the-iframe-element:document-9><a href=#document>Document</a></code> is created, these flags must be unset for
+  that <code id=the-iframe-element:document-10><a href=#document>Document</a></code>.</p>
 
   <p>The <dfn id=iframe-load-event-steps>iframe load event steps</dfn> are as follows:</p>
 
@@ -20117,7 +20118,7 @@
 
   <p class=note>If the user <a href=#navigate id=the-iframe-element:navigate-9>navigates</a> away from this page, the
   <code id=the-iframe-element:the-iframe-element-24><a href=#the-iframe-element>iframe</a></code>'s corresponding <code id=the-iframe-element:windowproxy-2><a href=#windowproxy>WindowProxy</a></code> object will proxy new
-  <code id=the-iframe-element:window><a href=#window>Window</a></code> objects for new <code id=the-iframe-element:document-10><a href=#document>Document</a></code> objects, but the <code id=the-iframe-element:attr-iframe-src-9><a href=#attr-iframe-src>src</a></code> attribute will not change.</p>
+  <code id=the-iframe-element:window><a href=#window>Window</a></code> objects for new <code id=the-iframe-element:document-11><a href=#document>Document</a></code> objects, but the <code id=the-iframe-element:attr-iframe-src-9><a href=#attr-iframe-src>src</a></code> attribute will not change.</p>
 
 
   <hr> 
@@ -20180,7 +20181,7 @@
 
   <p>When an <code id=the-iframe-element:the-iframe-element-30><a href=#the-iframe-element>iframe</a></code> element with a <code id=the-iframe-element:attr-iframe-sandbox-7><a href=#attr-iframe-sandbox>sandbox</a></code>
   attribute has its <a href=#nested-browsing-context id=the-iframe-element:nested-browsing-context-13>nested browsing context</a> created (before the initial
-  <code id=the-iframe-element:about:blank-5><a href=#about:blank>about:blank</a></code> <code id=the-iframe-element:document-11><a href=#document>Document</a></code> is created), and when an <code id=the-iframe-element:the-iframe-element-31><a href=#the-iframe-element>iframe</a></code>
+  <code id=the-iframe-element:about:blank-5><a href=#about:blank>about:blank</a></code> <code id=the-iframe-element:document-12><a href=#document>Document</a></code> is created), and when an <code id=the-iframe-element:the-iframe-element-31><a href=#the-iframe-element>iframe</a></code>
   element's <code id=the-iframe-element:attr-iframe-sandbox-8><a href=#attr-iframe-sandbox>sandbox</a></code> attribute is set or changed while it
   has a <a href=#nested-browsing-context id=the-iframe-element:nested-browsing-context-14>nested browsing context</a>, the user agent must <a href=#parse-a-sandboxing-directive id=the-iframe-element:parse-a-sandboxing-directive>parse the sandboxing directive</a> using the attribute's value as the <var>input</var>, the <code id=the-iframe-element:the-iframe-element-32><a href=#the-iframe-element>iframe</a></code> element's <a href=#nested-browsing-context id=the-iframe-element:nested-browsing-context-15>nested browsing context</a>'s
   <a href=#iframe-sandboxing-flag-set id=the-iframe-element:iframe-sandboxing-flag-set><code>iframe</code> sandboxing flag set</a> as the output, and, if the
@@ -20298,7 +20299,7 @@
   <ul><li>The <code id=the-iframe-element:attr-iframe-seamless-3><a href=#attr-iframe-seamless>seamless</a></code> attribute is set on the
    <code id=the-iframe-element:the-iframe-element-46><a href=#the-iframe-element>iframe</a></code> element, and
 
-   <li>The <code id=the-iframe-element:the-iframe-element-47><a href=#the-iframe-element>iframe</a></code> element's owner <code id=the-iframe-element:document-12><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set id=the-iframe-element:active-sandboxing-flag-set>active sandboxing flag
+   <li>The <code id=the-iframe-element:the-iframe-element-47><a href=#the-iframe-element>iframe</a></code> element's owner <code id=the-iframe-element:document-13><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set id=the-iframe-element:active-sandboxing-flag-set>active sandboxing flag
    set</a> does not have the <a href=#sandboxed-seamless-iframes-flag id=the-iframe-element:sandboxed-seamless-iframes-flag>sandboxed seamless iframes flag</a> set, and
 
    <li>Either:
@@ -20324,7 +20325,7 @@
    parent browsing context</a> unless an <a href=#explicit-self-navigation-override id=the-iframe-element:explicit-self-navigation-override-2>explicit self-navigation override</a> is used
    (<code>target="_self"</code>).<li><p>Media queries in the context of the <code id=the-iframe-element:the-iframe-element-51><a href=#the-iframe-element>iframe</a></code>'s <a href=#browsing-context id=the-iframe-element:browsing-context-14>browsing context</a>
    (e.g. on <code id=the-iframe-element:attr-style-media><a href=#attr-style-media>media</a></code> attributes of <code id=the-iframe-element:the-style-element><a href=#the-style-element>style</a></code> elements in
-   <code id=the-iframe-element:document-13><a href=#document>Document</a></code>s in that <code id=the-iframe-element:the-iframe-element-52><a href=#the-iframe-element>iframe</a></code>) must be evaluated with respect to the nearest
+   <code id=the-iframe-element:document-14><a href=#document>Document</a></code>s in that <code id=the-iframe-element:the-iframe-element-52><a href=#the-iframe-element>iframe</a></code>) must be evaluated with respect to the nearest
    <a href=#ancestor-browsing-context id=the-iframe-element:ancestor-browsing-context-2>ancestor browsing context</a> that is not itself being <a href=#browsing-context-nested-through id=the-iframe-element:browsing-context-nested-through>nested through</a> an <code id=the-iframe-element:the-iframe-element-53><a href=#the-iframe-element>iframe</a></code> that is <a href=#in-seamless-mode id=the-iframe-element:in-seamless-mode-2>in seamless
    mode</a>. <a href=#refsMQ>[MQ]</a><li><p>In a CSS-supporting user agent: the user agent must add all the style sheets that apply to
    the <code id=the-iframe-element:the-iframe-element-54><a href=#the-iframe-element>iframe</a></code> element to the cascade of the <a href=#active-document id=the-iframe-element:active-document-9>active document</a> of the
@@ -20392,7 +20393,7 @@
   <hr> 
 
   <p>The <dfn id=attr-iframe-allowfullscreen><code>allowfullscreen</code></dfn> attribute is a
-  <a href=#boolean-attribute id=the-iframe-element:boolean-attribute-2>boolean attribute</a>. When specified, it indicates that <code id=the-iframe-element:document-14><a href=#document>Document</a></code> objects in
+  <a href=#boolean-attribute id=the-iframe-element:boolean-attribute-2>boolean attribute</a>. When specified, it indicates that <code id=the-iframe-element:document-15><a href=#document>Document</a></code> objects in
   the <code id=the-iframe-element:the-iframe-element-70><a href=#the-iframe-element>iframe</a></code> element's <a href=#browsing-context id=the-iframe-element:browsing-context-17>browsing context</a> are to be allowed to use <code id=the-iframe-element:dom-element-requestfullscreen-2><a href=#dom-element-requestfullscreen>requestFullscreen()</a></code> (if it's not blocked for other
   reasons, e.g. there is another ancestor <code id=the-iframe-element:the-iframe-element-71><a href=#the-iframe-element>iframe</a></code> without this attribute set).</p>
 
@@ -20456,7 +20457,7 @@
   content attribute.</p>
 
   <p>The <dfn id=dom-iframe-contentdocument><code>contentDocument</code></dfn> IDL attribute
-  must return the <code id=the-iframe-element:document-15><a href=#document>Document</a></code> object of the <a href=#active-document id=the-iframe-element:active-document-14>active document</a> of the
+  must return the <code id=the-iframe-element:document-16><a href=#document>Document</a></code> object of the <a href=#active-document id=the-iframe-element:active-document-14>active document</a> of the
   <code id=the-iframe-element:the-iframe-element-81><a href=#the-iframe-element>iframe</a></code> element's <a href=#nested-browsing-context id=the-iframe-element:nested-browsing-context-28>nested browsing context</a>, if any and if its
   <a href=#effective-script-origin id=the-iframe-element:effective-script-origin>effective script origin</a> is the <a href=#same-origin id=the-iframe-element:same-origin-4>same origin</a> as the <a href=#effective-script-origin id=the-iframe-element:effective-script-origin-2>effective script
   origin</a> specified by the <a href=#incumbent-settings-object id=the-iframe-element:incumbent-settings-object>incumbent settings object</a>, or null otherwise.</p>
@@ -20490,7 +20491,7 @@
   attribute DOMString <a href=#dom-embed-type id=the-embed-element:dom-embed-type>type</a>;
   attribute DOMString <a href=#dom-dim-width id=the-embed-element:dom-dim-width>width</a>;
   attribute DOMString <a href=#dom-dim-height id=the-embed-element:dom-dim-height>height</a>;
-  <a href=#document id=the-embed-element:document>Document</a> <a href=#dom-embed-getsvgdocument id=the-embed-element:dom-embed-getsvgdocument>getSVGDocument</a>();
+  <a href=#document id=the-embed-element:document>Document</a> <a href=#dom-media-getsvgdocument id=the-embed-element:dom-media-getsvgdocument>getSVGDocument</a>();
   <a href=#dom-embed-caller id=the-embed-element:dom-embed-caller>legacycaller</a> any (any... arguments);
 
   // <a href="#HTMLEmbedElement-partial">also has obsolete members</a>
@@ -20705,28 +20706,8 @@
 
   <p>The <code id=the-embed-element:the-embed-element-26><a href=#the-embed-element>embed</a></code> element supports <a href=#dimension-attributes id=the-embed-element:dimension-attributes>dimension attributes</a>.</p>
 
-
-  <dl class=domintro><dt><var>doc</var> = <var>embed</var> . <code id=the-embed-element:dom-embed-getsvgdocument-2><a href=#dom-embed-getsvgdocument>getSVGDocument</a></code>()<dd>
-
-    <p>Returns the <code id=the-embed-element:document-2><a href=#document>Document</a></code> object, in the case of <code id=the-embed-element:the-embed-element-27><a href=#the-embed-element>embed</a></code> being used to embed SVG images.</p>
-
-   </dl>
-
   
 
-  <p>The <dfn id=dom-embed-getsvgdocument><code>getSVGDocument()</code></dfn> method must run
-  the following steps:</p>
-
-  <ol><li><p>If the element has no <a href=#nested-browsing-context id=the-embed-element:nested-browsing-context-8>nested browsing context</a>, then return null and abort
-   these steps.<li><p>If the <a href=#active-document id=the-embed-element:active-document-3>active document</a> of the <a href=#nested-browsing-context id=the-embed-element:nested-browsing-context-9>nested browsing context</a> does not
-   have the <a href=#same-origin id=the-embed-element:same-origin>same</a> <a href=#effective-script-origin id=the-embed-element:effective-script-origin>effective script origin</a> as the
-   <code id=the-embed-element:the-embed-element-28><a href=#the-embed-element>embed</a></code> element's <a id=the-embed-element:node-document-5 href=https://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>, then return null and abort these
-   steps.<li><p>If the <a href=#nested-browsing-context id=the-embed-element:nested-browsing-context-10>nested browsing context</a>'s <a href=#active-document id=the-embed-element:active-document-4>active document</a> was created by
-   the <a href=#read-xml id=the-embed-element:read-xml>page load processing model for XML files</a> section because
-   <span>the sniffed type of the resource</span> in the <a href=#navigate id=the-embed-element:navigate-2>navigate</a> algorithm was
-   <code id=the-embed-element:image/svg+xml><a href=#image/svg+xml>image/svg+xml</a></code>, then return that <code id=the-embed-element:document-3><a href=#document>Document</a></code> object and abort these
-   steps.<li><p>Otherwise, return null.</ol>
-
   <p>The IDL attributes <dfn id=dom-embed-src><code>src</code></dfn> and <dfn id=dom-embed-type><code>type</code></dfn> each must <a href=#reflect id=the-embed-element:reflect>reflect</a> the respective
   content attributes of the same name.</p>
 
@@ -20774,6 +20755,7 @@
   attribute DOMString <a href=#dom-dim-height id=the-object-element:dom-dim-height>height</a>;
   readonly attribute <a href=#document id=the-object-element:document>Document</a>? <a href=#dom-object-contentdocument id=the-object-element:dom-object-contentdocument>contentDocument</a>;
   readonly attribute <a href=#windowproxy id=the-object-element:windowproxy>WindowProxy</a>? <a href=#dom-object-contentwindow id=the-object-element:dom-object-contentwindow>contentWindow</a>;
+  <a href=#document id=the-object-element:document-2>Document</a> <a href=#dom-media-getsvgdocument id=the-object-element:dom-media-getsvgdocument>getSVGDocument</a>();
 
   readonly attribute boolean <a href=#dom-cva-willvalidate id=the-object-element:dom-cva-willvalidate>willValidate</a>;
   readonly attribute <a href=#validitystate id=the-object-element:validitystate>ValidityState</a> <a href=#dom-cva-validity id=the-object-element:dom-cva-validity>validity</a>;
@@ -21222,7 +21204,7 @@
   <a href=#reflect id=the-object-element:reflect-3>reflect</a> the <code id=the-object-element:attr-hyperlink-usemap-4><a href=#attr-hyperlink-usemap>usemap</a></code> content attribute.</p>
 
   <p>The <dfn id=dom-object-contentdocument><code>contentDocument</code></dfn> IDL attribute
-  must return the <code id=the-object-element:document-2><a href=#document>Document</a></code> object of the <a href=#active-document id=the-object-element:active-document-3>active document</a> of the
+  must return the <code id=the-object-element:document-3><a href=#document>Document</a></code> object of the <a href=#active-document id=the-object-element:active-document-3>active document</a> of the
   <code id=the-object-element:the-object-element-40><a href=#the-object-element>object</a></code> element's <a href=#nested-browsing-context id=the-object-element:nested-browsing-context-11>nested browsing context</a>, if any and if its
   <a href=#effective-script-origin id=the-object-element:effective-script-origin>effective script origin</a> is the <a href=#same-origin id=the-object-element:same-origin>same origin</a> as the <a href=#effective-script-origin id=the-object-element:effective-script-origin-2>effective script
   origin</a> specified by the <a href=#incumbent-settings-object id=the-object-element:incumbent-settings-object>incumbent settings object</a>, or null otherwise.</p>
@@ -27646,8 +27628,36 @@
   <p>The semantics of SVG elements are defined by the SVG specification and <a href=#other-applicable-specifications id=svg:other-applicable-specifications>other applicable
   specifications</a>. <a href=#refsSVG>[SVG]</a></p>
 
+  <hr>
 
 
+
+  <dl class=domintro><dt><var>doc</var> = <var>iframe</var> . <code id=svg:dom-media-getsvgdocument><a href=#dom-media-getsvgdocument>getSVGDocument</a></code>()<dt><var>doc</var> = <var>embed</var> . <code id=svg:dom-media-getsvgdocument-2><a href=#dom-media-getsvgdocument>getSVGDocument</a></code>()<dt><var>doc</var> = <var>object</var> . <code id=svg:dom-media-getsvgdocument-3><a href=#dom-media-getsvgdocument>getSVGDocument</a></code>()<dd>
+
+    <p>Returns the <code id=svg:document><a href=#document>Document</a></code> object, in the case of <code id=svg:the-iframe-element><a href=#the-iframe-element>iframe</a></code>, <code id=svg:the-embed-element><a href=#the-embed-element>embed</a></code>, or <code id=svg:the-object-element><a href=#the-object-element>object</a></code> elements being used to embed SVG images.</p>
+
+   </dl>
+
+  
+
+  <p>The <dfn id=dom-media-getsvgdocument><code>getSVGDocument()</code></dfn> method must run
+  the following steps:</p>
+
+  <ol><li><p>If the element has no <a href=#nested-browsing-context id=svg:nested-browsing-context>nested browsing context</a>, then return null and abort
+   these steps.<li><p>If the <a href=#active-document id=svg:active-document>active document</a> of the <a href=#nested-browsing-context id=svg:nested-browsing-context-2>nested browsing context</a> does not
+   have the <a href=#same-origin id=svg:same-origin>same</a> <a href=#effective-script-origin id=svg:effective-script-origin>effective script origin</a> as the
+   element's <a id=svg:node-document href=https://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>, then return null and abort these
+   steps.<li><p>If the <a href=#nested-browsing-context id=svg:nested-browsing-context-3>nested browsing context</a>'s <a href=#active-document id=svg:active-document-2>active document</a> was created by
+   the <a href=#read-xml id=svg:read-xml>page load processing model for XML files</a> section because
+   <span>the sniffed type of the resource</span> in the <a href=#navigate id=svg:navigate>navigate</a> algorithm was
+   <code id=svg:image/svg+xml><a href=#image/svg+xml>image/svg+xml</a></code>, then return that <code id=svg:document-2><a href=#document>Document</a></code> object and abort these
+   steps.<li><p>Otherwise, return null.</ol>
+
+  
+
+
+
+
   <h4 id=dimension-attributes>4.8.20 <dfn>Dimension attributes</dfn></h4>
 
   <p><strong>Author requirements</strong>: The <dfn id=attr-dim-width><code>width</code></dfn> and <dfn id=attr-dim-height><code>height</code></dfn> attributes on <code id=dimension-attributes:the-img-element><a href=#the-img-element>img</a></code>, <code id=dimension-attributes:the-iframe-element><a href=#the-iframe-element>iframe</a></code>,

Modified: index
===================================================================
--- index	2014-09-24 18:54:51 UTC (rev 8810)
+++ index	2014-09-24 19:02:43 UTC (rev 8811)
@@ -19894,6 +19894,7 @@
   attribute DOMString <a href=#dom-dim-height id=the-iframe-element:dom-dim-height>height</a>;
   readonly attribute <a href=#document id=the-iframe-element:document>Document</a>? <a href=#dom-iframe-contentdocument id=the-iframe-element:dom-iframe-contentdocument>contentDocument</a>;
   readonly attribute <a href=#windowproxy id=the-iframe-element:windowproxy>WindowProxy</a>? <a href=#dom-iframe-contentwindow id=the-iframe-element:dom-iframe-contentwindow>contentWindow</a>;
+  <a href=#document id=the-iframe-element:document-2>Document</a> <a href=#dom-media-getsvgdocument id=the-iframe-element:dom-media-getsvgdocument>getSVGDocument</a>();
 
   // <a href="#HTMLIFrameElement-partial">also has obsolete members</a>
 };</pre>
@@ -19999,7 +20000,7 @@
   from a document</a>, the user agent must <a href=#a-browsing-context-is-discarded id=the-iframe-element:a-browsing-context-is-discarded>discard</a> the <a href=#nested-browsing-context id=the-iframe-element:nested-browsing-context-6>nested browsing context</a>, if any.</p>
 
   <p class=note>This happens without any <code id=the-iframe-element:event-unload><a href=#event-unload>unload</a></code> events firing
-  (the <a href=#nested-browsing-context id=the-iframe-element:nested-browsing-context-7>nested browsing context</a> and its <code id=the-iframe-element:document-2><a href=#document>Document</a></code> are <em><a href=#a-browsing-context-is-discarded id=the-iframe-element:a-browsing-context-is-discarded-2>discarded</a></em>, not <em><a href=#unload-a-document id=the-iframe-element:unload-a-document>unloaded</a></em>).</p>
+  (the <a href=#nested-browsing-context id=the-iframe-element:nested-browsing-context-7>nested browsing context</a> and its <code id=the-iframe-element:document-3><a href=#document>Document</a></code> are <em><a href=#a-browsing-context-is-discarded id=the-iframe-element:a-browsing-context-is-discarded-2>discarded</a></em>, not <em><a href=#unload-a-document id=the-iframe-element:unload-a-document>unloaded</a></em>).</p>
 
   
 
@@ -20017,7 +20018,7 @@
   <dl class=switch><dt>If the <code id=the-iframe-element:attr-iframe-srcdoc-13><a href=#attr-iframe-srcdoc>srcdoc</a></code> attribute is specified<dd><p><a href=#navigate id=the-iframe-element:navigate>Navigate</a> the element's <a href=#child-browsing-context id=the-iframe-element:child-browsing-context>child browsing context</a>
    to a resource whose <a href=#content-type id=the-iframe-element:content-type>Content-Type</a> is <code id=the-iframe-element:text/html><a href=#text/html>text/html</a></code>, whose <a href=#url id=the-iframe-element:url-2>URL</a>
    is <code id=the-iframe-element:about:srcdoc><a href=#about:srcdoc>about:srcdoc</a></code>, and whose data consists of the value of the attribute. The
-   resulting <code id=the-iframe-element:document-3><a href=#document>Document</a></code> must be considered <a href=#an-iframe-srcdoc-document id=the-iframe-element:an-iframe-srcdoc-document-3>an <code>iframe</code> <code>srcdoc</code> document</a>.<dt>Otherwise, if the element has no <code id=the-iframe-element:attr-iframe-src-5><a href=#attr-iframe-src>src</a></code> attribute
+   resulting <code id=the-iframe-element:document-4><a href=#document>Document</a></code> must be considered <a href=#an-iframe-srcdoc-document id=the-iframe-element:an-iframe-srcdoc-document-3>an <code>iframe</code> <code>srcdoc</code> document</a>.<dt>Otherwise, if the element has no <code id=the-iframe-element:attr-iframe-src-5><a href=#attr-iframe-src>src</a></code> attribute
    specified, and the user agent is processing the <code id=the-iframe-element:the-iframe-element-11><a href=#the-iframe-element>iframe</a></code>'s attributes for the "first
    time"<dd>
 
@@ -20069,20 +20070,20 @@
   loaded</a> at the time of the new <a href=#navigate id=the-iframe-element:navigate-5>navigation</a>, then the <a href=#navigate id=the-iframe-element:navigate-6>navigation</a> must be completed with <a href=#replacement-enabled id=the-iframe-element:replacement-enabled>replacement enabled</a>.</p>
 
   <p>Similarly, if the <a href=#child-browsing-context id=the-iframe-element:child-browsing-context-4>child browsing context</a>'s <a href=#session-history id=the-iframe-element:session-history>session history</a> contained
-  only one <code id=the-iframe-element:document-4><a href=#document>Document</a></code> when the <a href=#process-the-iframe-attributes id=the-iframe-element:process-the-iframe-attributes-5>process the <code>iframe</code> attributes</a>
-  algorithm was invoked, and that was the <code id=the-iframe-element:about:blank-3><a href=#about:blank>about:blank</a></code> <code id=the-iframe-element:document-5><a href=#document>Document</a></code> created
+  only one <code id=the-iframe-element:document-5><a href=#document>Document</a></code> when the <a href=#process-the-iframe-attributes id=the-iframe-element:process-the-iframe-attributes-5>process the <code>iframe</code> attributes</a>
+  algorithm was invoked, and that was the <code id=the-iframe-element:about:blank-3><a href=#about:blank>about:blank</a></code> <code id=the-iframe-element:document-6><a href=#document>Document</a></code> created
   when the <a href=#child-browsing-context id=the-iframe-element:child-browsing-context-5>child browsing context</a> was created, then any <a href=#navigate id=the-iframe-element:navigate-7>navigation</a> required of the user agent in that algorithm must be completed
   with <a href=#replacement-enabled id=the-iframe-element:replacement-enabled-2>replacement enabled</a>.</p> 
 
-  <p>When a <code id=the-iframe-element:document-6><a href=#document>Document</a></code> in an <code id=the-iframe-element:the-iframe-element-14><a href=#the-iframe-element>iframe</a></code> is marked as <a href=#completely-loaded id=the-iframe-element:completely-loaded-2>completely
+  <p>When a <code id=the-iframe-element:document-7><a href=#document>Document</a></code> in an <code id=the-iframe-element:the-iframe-element-14><a href=#the-iframe-element>iframe</a></code> is marked as <a href=#completely-loaded id=the-iframe-element:completely-loaded-2>completely
   loaded</a>, the user agent must run the <a href=#iframe-load-event-steps id=the-iframe-element:iframe-load-event-steps-2>iframe load event steps</a> <a href=#in-parallel id=the-iframe-element:in-parallel>in parallel</a>.</p>
 
   <p class=note>A <code id=the-iframe-element:event-load><a href=#event-load>load</a></code> event is also fired at the
   <code id=the-iframe-element:the-iframe-element-15><a href=#the-iframe-element>iframe</a></code> element when it is created if no other data is loaded in it.</p>
 
-  <p>Each <code id=the-iframe-element:document-7><a href=#document>Document</a></code> has an <dfn id=iframe-load-in-progress>iframe load in progress</dfn> flag and a <dfn id=mute-iframe-load>mute
-  iframe load</dfn> flag. When a <code id=the-iframe-element:document-8><a href=#document>Document</a></code> is created, these flags must be unset for
-  that <code id=the-iframe-element:document-9><a href=#document>Document</a></code>.</p>
+  <p>Each <code id=the-iframe-element:document-8><a href=#document>Document</a></code> has an <dfn id=iframe-load-in-progress>iframe load in progress</dfn> flag and a <dfn id=mute-iframe-load>mute
+  iframe load</dfn> flag. When a <code id=the-iframe-element:document-9><a href=#document>Document</a></code> is created, these flags must be unset for
+  that <code id=the-iframe-element:document-10><a href=#document>Document</a></code>.</p>
 
   <p>The <dfn id=iframe-load-event-steps>iframe load event steps</dfn> are as follows:</p>
 
@@ -20117,7 +20118,7 @@
 
   <p class=note>If the user <a href=#navigate id=the-iframe-element:navigate-9>navigates</a> away from this page, the
   <code id=the-iframe-element:the-iframe-element-24><a href=#the-iframe-element>iframe</a></code>'s corresponding <code id=the-iframe-element:windowproxy-2><a href=#windowproxy>WindowProxy</a></code> object will proxy new
-  <code id=the-iframe-element:window><a href=#window>Window</a></code> objects for new <code id=the-iframe-element:document-10><a href=#document>Document</a></code> objects, but the <code id=the-iframe-element:attr-iframe-src-9><a href=#attr-iframe-src>src</a></code> attribute will not change.</p>
+  <code id=the-iframe-element:window><a href=#window>Window</a></code> objects for new <code id=the-iframe-element:document-11><a href=#document>Document</a></code> objects, but the <code id=the-iframe-element:attr-iframe-src-9><a href=#attr-iframe-src>src</a></code> attribute will not change.</p>
 
 
   <hr> 
@@ -20180,7 +20181,7 @@
 
   <p>When an <code id=the-iframe-element:the-iframe-element-30><a href=#the-iframe-element>iframe</a></code> element with a <code id=the-iframe-element:attr-iframe-sandbox-7><a href=#attr-iframe-sandbox>sandbox</a></code>
   attribute has its <a href=#nested-browsing-context id=the-iframe-element:nested-browsing-context-13>nested browsing context</a> created (before the initial
-  <code id=the-iframe-element:about:blank-5><a href=#about:blank>about:blank</a></code> <code id=the-iframe-element:document-11><a href=#document>Document</a></code> is created), and when an <code id=the-iframe-element:the-iframe-element-31><a href=#the-iframe-element>iframe</a></code>
+  <code id=the-iframe-element:about:blank-5><a href=#about:blank>about:blank</a></code> <code id=the-iframe-element:document-12><a href=#document>Document</a></code> is created), and when an <code id=the-iframe-element:the-iframe-element-31><a href=#the-iframe-element>iframe</a></code>
   element's <code id=the-iframe-element:attr-iframe-sandbox-8><a href=#attr-iframe-sandbox>sandbox</a></code> attribute is set or changed while it
   has a <a href=#nested-browsing-context id=the-iframe-element:nested-browsing-context-14>nested browsing context</a>, the user agent must <a href=#parse-a-sandboxing-directive id=the-iframe-element:parse-a-sandboxing-directive>parse the sandboxing directive</a> using the attribute's value as the <var>input</var>, the <code id=the-iframe-element:the-iframe-element-32><a href=#the-iframe-element>iframe</a></code> element's <a href=#nested-browsing-context id=the-iframe-element:nested-browsing-context-15>nested browsing context</a>'s
   <a href=#iframe-sandboxing-flag-set id=the-iframe-element:iframe-sandboxing-flag-set><code>iframe</code> sandboxing flag set</a> as the output, and, if the
@@ -20298,7 +20299,7 @@
   <ul><li>The <code id=the-iframe-element:attr-iframe-seamless-3><a href=#attr-iframe-seamless>seamless</a></code> attribute is set on the
    <code id=the-iframe-element:the-iframe-element-46><a href=#the-iframe-element>iframe</a></code> element, and
 
-   <li>The <code id=the-iframe-element:the-iframe-element-47><a href=#the-iframe-element>iframe</a></code> element's owner <code id=the-iframe-element:document-12><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set id=the-iframe-element:active-sandboxing-flag-set>active sandboxing flag
+   <li>The <code id=the-iframe-element:the-iframe-element-47><a href=#the-iframe-element>iframe</a></code> element's owner <code id=the-iframe-element:document-13><a href=#document>Document</a></code>'s <a href=#active-sandboxing-flag-set id=the-iframe-element:active-sandboxing-flag-set>active sandboxing flag
    set</a> does not have the <a href=#sandboxed-seamless-iframes-flag id=the-iframe-element:sandboxed-seamless-iframes-flag>sandboxed seamless iframes flag</a> set, and
 
    <li>Either:
@@ -20324,7 +20325,7 @@
    parent browsing context</a> unless an <a href=#explicit-self-navigation-override id=the-iframe-element:explicit-self-navigation-override-2>explicit self-navigation override</a> is used
    (<code>target="_self"</code>).<li><p>Media queries in the context of the <code id=the-iframe-element:the-iframe-element-51><a href=#the-iframe-element>iframe</a></code>'s <a href=#browsing-context id=the-iframe-element:browsing-context-14>browsing context</a>
    (e.g. on <code id=the-iframe-element:attr-style-media><a href=#attr-style-media>media</a></code> attributes of <code id=the-iframe-element:the-style-element><a href=#the-style-element>style</a></code> elements in
-   <code id=the-iframe-element:document-13><a href=#document>Document</a></code>s in that <code id=the-iframe-element:the-iframe-element-52><a href=#the-iframe-element>iframe</a></code>) must be evaluated with respect to the nearest
+   <code id=the-iframe-element:document-14><a href=#document>Document</a></code>s in that <code id=the-iframe-element:the-iframe-element-52><a href=#the-iframe-element>iframe</a></code>) must be evaluated with respect to the nearest
    <a href=#ancestor-browsing-context id=the-iframe-element:ancestor-browsing-context-2>ancestor browsing context</a> that is not itself being <a href=#browsing-context-nested-through id=the-iframe-element:browsing-context-nested-through>nested through</a> an <code id=the-iframe-element:the-iframe-element-53><a href=#the-iframe-element>iframe</a></code> that is <a href=#in-seamless-mode id=the-iframe-element:in-seamless-mode-2>in seamless
    mode</a>. <a href=#refsMQ>[MQ]</a><li><p>In a CSS-supporting user agent: the user agent must add all the style sheets that apply to
    the <code id=the-iframe-element:the-iframe-element-54><a href=#the-iframe-element>iframe</a></code> element to the cascade of the <a href=#active-document id=the-iframe-element:active-document-9>active document</a> of the
@@ -20392,7 +20393,7 @@
   <hr> 
 
   <p>The <dfn id=attr-iframe-allowfullscreen><code>allowfullscreen</code></dfn> attribute is a
-  <a href=#boolean-attribute id=the-iframe-element:boolean-attribute-2>boolean attribute</a>. When specified, it indicates that <code id=the-iframe-element:document-14><a href=#document>Document</a></code> objects in
+  <a href=#boolean-attribute id=the-iframe-element:boolean-attribute-2>boolean attribute</a>. When specified, it indicates that <code id=the-iframe-element:document-15><a href=#document>Document</a></code> objects in
   the <code id=the-iframe-element:the-iframe-element-70><a href=#the-iframe-element>iframe</a></code> element's <a href=#browsing-context id=the-iframe-element:browsing-context-17>browsing context</a> are to be allowed to use <code id=the-iframe-element:dom-element-requestfullscreen-2><a href=#dom-element-requestfullscreen>requestFullscreen()</a></code> (if it's not blocked for other
   reasons, e.g. there is another ancestor <code id=the-iframe-element:the-iframe-element-71><a href=#the-iframe-element>iframe</a></code> without this attribute set).</p>
 
@@ -20456,7 +20457,7 @@
   content attribute.</p>
 
   <p>The <dfn id=dom-iframe-contentdocument><code>contentDocument</code></dfn> IDL attribute
-  must return the <code id=the-iframe-element:document-15><a href=#document>Document</a></code> object of the <a href=#active-document id=the-iframe-element:active-document-14>active document</a> of the
+  must return the <code id=the-iframe-element:document-16><a href=#document>Document</a></code> object of the <a href=#active-document id=the-iframe-element:active-document-14>active document</a> of the
   <code id=the-iframe-element:the-iframe-element-81><a href=#the-iframe-element>iframe</a></code> element's <a href=#nested-browsing-context id=the-iframe-element:nested-browsing-context-28>nested browsing context</a>, if any and if its
   <a href=#effective-script-origin id=the-iframe-element:effective-script-origin>effective script origin</a> is the <a href=#same-origin id=the-iframe-element:same-origin-4>same origin</a> as the <a href=#effective-script-origin id=the-iframe-element:effective-script-origin-2>effective script
   origin</a> specified by the <a href=#incumbent-settings-object id=the-iframe-element:incumbent-settings-object>incumbent settings object</a>, or null otherwise.</p>
@@ -20490,7 +20491,7 @@
   attribute DOMString <a href=#dom-embed-type id=the-embed-element:dom-embed-type>type</a>;
   attribute DOMString <a href=#dom-dim-width id=the-embed-element:dom-dim-width>width</a>;
   attribute DOMString <a href=#dom-dim-height id=the-embed-element:dom-dim-height>height</a>;
-  <a href=#document id=the-embed-element:document>Document</a> <a href=#dom-embed-getsvgdocument id=the-embed-element:dom-embed-getsvgdocument>getSVGDocument</a>();
+  <a href=#document id=the-embed-element:document>Document</a> <a href=#dom-media-getsvgdocument id=the-embed-element:dom-media-getsvgdocument>getSVGDocument</a>();
   <a href=#dom-embed-caller id=the-embed-element:dom-embed-caller>legacycaller</a> any (any... arguments);
 
   // <a href="#HTMLEmbedElement-partial">also has obsolete members</a>
@@ -20705,28 +20706,8 @@
 
   <p>The <code id=the-embed-element:the-embed-element-26><a href=#the-embed-element>embed</a></code> element supports <a href=#dimension-attributes id=the-embed-element:dimension-attributes>dimension attributes</a>.</p>
 
-
-  <dl class=domintro><dt><var>doc</var> = <var>embed</var> . <code id=the-embed-element:dom-embed-getsvgdocument-2><a href=#dom-embed-getsvgdocument>getSVGDocument</a></code>()<dd>
-
-    <p>Returns the <code id=the-embed-element:document-2><a href=#document>Document</a></code> object, in the case of <code id=the-embed-element:the-embed-element-27><a href=#the-embed-element>embed</a></code> being used to embed SVG images.</p>
-
-   </dl>
-
   
 
-  <p>The <dfn id=dom-embed-getsvgdocument><code>getSVGDocument()</code></dfn> method must run
-  the following steps:</p>
-
-  <ol><li><p>If the element has no <a href=#nested-browsing-context id=the-embed-element:nested-browsing-context-8>nested browsing context</a>, then return null and abort
-   these steps.<li><p>If the <a href=#active-document id=the-embed-element:active-document-3>active document</a> of the <a href=#nested-browsing-context id=the-embed-element:nested-browsing-context-9>nested browsing context</a> does not
-   have the <a href=#same-origin id=the-embed-element:same-origin>same</a> <a href=#effective-script-origin id=the-embed-element:effective-script-origin>effective script origin</a> as the
-   <code id=the-embed-element:the-embed-element-28><a href=#the-embed-element>embed</a></code> element's <a id=the-embed-element:node-document-5 href=https://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>, then return null and abort these
-   steps.<li><p>If the <a href=#nested-browsing-context id=the-embed-element:nested-browsing-context-10>nested browsing context</a>'s <a href=#active-document id=the-embed-element:active-document-4>active document</a> was created by
-   the <a href=#read-xml id=the-embed-element:read-xml>page load processing model for XML files</a> section because
-   <span>the sniffed type of the resource</span> in the <a href=#navigate id=the-embed-element:navigate-2>navigate</a> algorithm was
-   <code id=the-embed-element:image/svg+xml><a href=#image/svg+xml>image/svg+xml</a></code>, then return that <code id=the-embed-element:document-3><a href=#document>Document</a></code> object and abort these
-   steps.<li><p>Otherwise, return null.</ol>
-
   <p>The IDL attributes <dfn id=dom-embed-src><code>src</code></dfn> and <dfn id=dom-embed-type><code>type</code></dfn> each must <a href=#reflect id=the-embed-element:reflect>reflect</a> the respective
   content attributes of the same name.</p>
 
@@ -20774,6 +20755,7 @@
   attribute DOMString <a href=#dom-dim-height id=the-object-element:dom-dim-height>height</a>;
   readonly attribute <a href=#document id=the-object-element:document>Document</a>? <a href=#dom-object-contentdocument id=the-object-element:dom-object-contentdocument>contentDocument</a>;
   readonly attribute <a href=#windowproxy id=the-object-element:windowproxy>WindowProxy</a>? <a href=#dom-object-contentwindow id=the-object-element:dom-object-contentwindow>contentWindow</a>;
+  <a href=#document id=the-object-element:document-2>Document</a> <a href=#dom-media-getsvgdocument id=the-object-element:dom-media-getsvgdocument>getSVGDocument</a>();
 
   readonly attribute boolean <a href=#dom-cva-willvalidate id=the-object-element:dom-cva-willvalidate>willValidate</a>;
   readonly attribute <a href=#validitystate id=the-object-element:validitystate>ValidityState</a> <a href=#dom-cva-validity id=the-object-element:dom-cva-validity>validity</a>;
@@ -21222,7 +21204,7 @@
   <a href=#reflect id=the-object-element:reflect-3>reflect</a> the <code id=the-object-element:attr-hyperlink-usemap-4><a href=#attr-hyperlink-usemap>usemap</a></code> content attribute.</p>
 
   <p>The <dfn id=dom-object-contentdocument><code>contentDocument</code></dfn> IDL attribute
-  must return the <code id=the-object-element:document-2><a href=#document>Document</a></code> object of the <a href=#active-document id=the-object-element:active-document-3>active document</a> of the
+  must return the <code id=the-object-element:document-3><a href=#document>Document</a></code> object of the <a href=#active-document id=the-object-element:active-document-3>active document</a> of the
   <code id=the-object-element:the-object-element-40><a href=#the-object-element>object</a></code> element's <a href=#nested-browsing-context id=the-object-element:nested-browsing-context-11>nested browsing context</a>, if any and if its
   <a href=#effective-script-origin id=the-object-element:effective-script-origin>effective script origin</a> is the <a href=#same-origin id=the-object-element:same-origin>same origin</a> as the <a href=#effective-script-origin id=the-object-element:effective-script-origin-2>effective script
   origin</a> specified by the <a href=#incumbent-settings-object id=the-object-element:incumbent-settings-object>incumbent settings object</a>, or null otherwise.</p>
@@ -27646,8 +27628,36 @@
   <p>The semantics of SVG elements are defined by the SVG specification and <a href=#other-applicable-specifications id=svg:other-applicable-specifications>other applicable
   specifications</a>. <a href=#refsSVG>[SVG]</a></p>
 
+  <hr>
 
 
+
+  <dl class=domintro><dt><var>doc</var> = <var>iframe</var> . <code id=svg:dom-media-getsvgdocument><a href=#dom-media-getsvgdocument>getSVGDocument</a></code>()<dt><var>doc</var> = <var>embed</var> . <code id=svg:dom-media-getsvgdocument-2><a href=#dom-media-getsvgdocument>getSVGDocument</a></code>()<dt><var>doc</var> = <var>object</var> . <code id=svg:dom-media-getsvgdocument-3><a href=#dom-media-getsvgdocument>getSVGDocument</a></code>()<dd>
+
+    <p>Returns the <code id=svg:document><a href=#document>Document</a></code> object, in the case of <code id=svg:the-iframe-element><a href=#the-iframe-element>iframe</a></code>, <code id=svg:the-embed-element><a href=#the-embed-element>embed</a></code>, or <code id=svg:the-object-element><a href=#the-object-element>object</a></code> elements being used to embed SVG images.</p>
+
+   </dl>
+
+  
+
+  <p>The <dfn id=dom-media-getsvgdocument><code>getSVGDocument()</code></dfn> method must run
+  the following steps:</p>
+
+  <ol><li><p>If the element has no <a href=#nested-browsing-context id=svg:nested-browsing-context>nested browsing context</a>, then return null and abort
+   these steps.<li><p>If the <a href=#active-document id=svg:active-document>active document</a> of the <a href=#nested-browsing-context id=svg:nested-browsing-context-2>nested browsing context</a> does not
+   have the <a href=#same-origin id=svg:same-origin>same</a> <a href=#effective-script-origin id=svg:effective-script-origin>effective script origin</a> as the
+   element's <a id=svg:node-document href=https://dom.spec.whatwg.org/#concept-node-document data-x-internal=node-document>node document</a>, then return null and abort these
+   steps.<li><p>If the <a href=#nested-browsing-context id=svg:nested-browsing-context-3>nested browsing context</a>'s <a href=#active-document id=svg:active-document-2>active document</a> was created by
+   the <a href=#read-xml id=svg:read-xml>page load processing model for XML files</a> section because
+   <span>the sniffed type of the resource</span> in the <a href=#navigate id=svg:navigate>navigate</a> algorithm was
+   <code id=svg:image/svg+xml><a href=#image/svg+xml>image/svg+xml</a></code>, then return that <code id=svg:document-2><a href=#document>Document</a></code> object and abort these
+   steps.<li><p>Otherwise, return null.</ol>
+
+  
+
+
+
+
   <h4 id=dimension-attributes>4.8.20 <dfn>Dimension attributes</dfn></h4>
 
   <p><strong>Author requirements</strong>: The <dfn id=attr-dim-width><code>width</code></dfn> and <dfn id=attr-dim-height><code>height</code></dfn> attributes on <code id=dimension-attributes:the-img-element><a href=#the-img-element>img</a></code>, <code id=dimension-attributes:the-iframe-element><a href=#the-iframe-element>iframe</a></code>,

Modified: source
===================================================================
--- source	2014-09-24 18:54:51 UTC (rev 8810)
+++ source	2014-09-24 19:02:43 UTC (rev 8811)
@@ -24824,6 +24824,7 @@
   attribute DOMString <span data-x="dom-dim-height">height</span>;
   readonly attribute <span>Document</span>? <span data-x="dom-iframe-contentDocument">contentDocument</span>;
   readonly attribute <span>WindowProxy</span>? <span data-x="dom-iframe-contentWindow">contentWindow</span>;
+  <span>Document</span> <span data-x="dom-media-getSVGDocument">getSVGDocument</span>();
 };</pre>
    </dd>
   </dl><!--TOPIC:HTML-->
@@ -25584,7 +25585,7 @@
   attribute DOMString <span data-x="dom-embed-type">type</span>;
   attribute DOMString <span data-x="dom-dim-width">width</span>;
   attribute DOMString <span data-x="dom-dim-height">height</span>;
-  <span>Document</span> <span data-x="dom-embed-getSVGDocument">getSVGDocument</span>();
+  <span>Document</span> <span data-x="dom-media-getSVGDocument">getSVGDocument</span>();
   <span data-x="dom-embed-caller">legacycaller</span> any (any... arguments);
 };</pre>
     <div w-nodev>
@@ -25891,44 +25892,8 @@
 
   <p>The <code>embed</code> element supports <span>dimension attributes</span>.</p>
 
-<!--TOPIC:DOM APIs-->
-  <dl class="domintro">
-
-   <dt><var>doc</var> = <var>embed</var> . <code subdfn data-x="dom-embed-getSVGDocument">getSVGDocument</code>()</dt>
-
-   <dd>
-
-    <p>Returns the <code>Document</code> object, in the case of <code>embed</code> being used to embed SVG images.</p>
-
-   </dd>
-
-  </dl>
-
   <div w-nodev>
 
-  <p>The <dfn><code data-x="dom-embed-getSVGDocument">getSVGDocument()</code></dfn> method must run
-  the following steps:</p>
-
-  <ol>
-
-   <li><p>If the element has no <span>nested browsing context</span>, then return null and abort
-   these steps.</p></li>
-
-   <li><p>If the <span>active document</span> of the <span>nested browsing context</span> does not
-   have the <span data-x="same origin">same</span> <span>effective script origin</span> as the
-   <code>embed</code> element's <span>node document</span>, then return null and abort these
-   steps.</p></li>
-
-   <li><p>If the <span>nested browsing context</span>'s <span>active document</span> was created by
-   the <span data-x="navigate-xml">page load processing model for XML files</span> section because
-   <span>the sniffed type of the resource</span> in the <span>navigate</span> algorithm was
-   <code>image/svg+xml</code>, then return that <code>Document</code> object and abort these
-   steps.</p></li>
-
-   <li><p>Otherwise, return null.</p></li>
-
-  </ol>
-
   <p>The IDL attributes <dfn><code data-x="dom-embed-src">src</code></dfn> and <dfn><code data-x="dom-embed-type">type</code></dfn> each must <span>reflect</span> the respective
   content attributes of the same name.</p>
 
@@ -25999,6 +25964,7 @@
   attribute DOMString <span data-x="dom-dim-height">height</span>;
   readonly attribute <span>Document</span>? <span data-x="dom-object-contentDocument">contentDocument</span>;
   readonly attribute <span>WindowProxy</span>? <span data-x="dom-object-contentWindow">contentWindow</span>;
+  <span>Document</span> <span data-x="dom-media-getSVGDocument">getSVGDocument</span>();
 
   readonly attribute boolean <span data-x="dom-cva-willValidate">willValidate</span>;
   readonly attribute <span>ValidityState</span> <span data-x="dom-cva-validity">validity</span>;
@@ -35801,8 +35767,54 @@
   <p>The semantics of SVG elements are defined by the SVG specification and <span>other applicable
   specifications</span>. <ref spec=SVG></p>
 
+  <hr>
 
 
+<!--TOPIC:DOM APIs-->
+  <dl class="domintro">
+
+   <dt><var>doc</var> = <var>iframe</var> . <code subdfn data-x="dom-media-getSVGDocument">getSVGDocument</code>()</dt>
+   <dt><var>doc</var> = <var>embed</var> . <code data-x="dom-media-getSVGDocument">getSVGDocument</code>()</dt>
+   <dt><var>doc</var> = <var>object</var> . <code data-x="dom-media-getSVGDocument">getSVGDocument</code>()</dt>
+
+   <dd>
+
+    <p>Returns the <code>Document</code> object, in the case of <code>iframe</code>, <code>embed</code>, or <code>object</code> elements being used to embed SVG images.</p>
+
+   </dd>
+
+  </dl>
+
+  <div w-nodev>
+
+  <p>The <dfn><code data-x="dom-media-getSVGDocument">getSVGDocument()</code></dfn> method must run
+  the following steps:</p>
+
+  <ol>
+
+   <li><p>If the element has no <span>nested browsing context</span>, then return null and abort
+   these steps.</p></li>
+
+   <li><p>If the <span>active document</span> of the <span>nested browsing context</span> does not
+   have the <span data-x="same origin">same</span> <span>effective script origin</span> as the
+   element's <span>node document</span>, then return null and abort these
+   steps.</p></li>
+
+   <li><p>If the <span>nested browsing context</span>'s <span>active document</span> was created by
+   the <span data-x="navigate-xml">page load processing model for XML files</span> section because
+   <span>the sniffed type of the resource</span> in the <span>navigate</span> algorithm was
+   <code>image/svg+xml</code>, then return that <code>Document</code> object and abort these
+   steps.</p></li>
+
+   <li><p>Otherwise, return null.</p></li>
+
+  </ol>
+
+  </div>
+
+
+
+
   <h4><dfn>Dimension attributes</dfn></h4>
 
   <p><span w-nodev><strong>Author requirements</strong>:</span> The <dfn><code



More information about the Commit-Watchers mailing list