ACTION-3377: Make SVGDocument into an alias for document
authorErik Dahlström <ed@opera.com>
Thu, 11 Oct 2012 22:43:09 +0200
changeset 392 14feb8d4af67
parent 391 dec9b5167459
child 393 9c07cc49defd
ACTION-3377: Make SVGDocument into an alias for document

Also removed the URL property since it's already defined in
Document, http://www.w3.org/TR/2012/WD-dom-20120405/#interface-document.
master/definitions.xml
master/struct.html
--- a/master/definitions.xml	Thu Sep 27 16:47:02 2012 +1000
+++ b/master/definitions.xml	Thu Oct 11 22:43:09 2012 +0200
@@ -1339,6 +1339,7 @@
   <interface name='RGBColor' href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html#CSS-RGBColor'/>
   <interface name='AbstractView' href='http://www.w3.org/TR/DOM-Level-2-Views/views.html#Views-AbstractView'/>
   <interface name='EmbeddingElement' href='http://www.w3.org/TR/Window/#embeddingelt'/>
+  <interface name='Window' href='http://www.w3.org/TR/2012/WD-html5-20120329/browsers.html#the-window-object'/>
 
   <!-- ... terms .......................................................... -->
   <term name='compound selector' href='http://dev.w3.org/csswg/selectors4/#compound'/>
--- a/master/struct.html	Thu Sep 27 16:47:02 2012 +1000
+++ b/master/struct.html	Thu Oct 11 22:43:09 2012 +0200
@@ -2061,56 +2061,29 @@
 
 <h2 id="DOMInterfaces">DOM interfaces</h2>
 
-<h3 id="InterfaceSVGDocument">Interface SVGDocument</h3>
-
-
-
-<p>When an <a>'svg'</a> element is embedded inline as
-a component of a document from another namespace, such as when an
-<a>'svg'</a> element is embedded inline within an
-XHTML document [<a href="refs.html#ref-XHTML">XHTML</a>], then an
-<a>SVGDocument</a> object will not exist; instead, the root object in
-the document object hierarchy will be a Document object of a different
-type, such as an HTMLDocument object.
-</p>
-
-
-<p>However, an <a>SVGDocument</a> object will indeed exist when the
-root element of the XML document hierarchy is an
-<a>'svg'</a> element, such as when viewing a stand-alone SVG file (i.e., a
-file with MIME type "image/svg+xml"). In this case, the <a>SVGDocument</a>
-object will be the root object of the document object model hierarchy.
-</p>
-
-
-<p>In the case where an SVG document is embedded by reference,
-such as when an XHTML document has an <span class="element-name">'object'</span>
+<h3 id="InterfaceSVGDocument">Interface Document</h3>
+
+<p>The DOM Core specification defines a <a>Document</a> interface, which this specification extends.</p>
+
+<p class="note">In the case where an SVG document is embedded by reference,
+such as when an HTML document has an <span class="element-name">'object'</span>
 element whose <span class="attr-name">'href'</span> attribute references an SVG
 document (i.e., a document whose MIME type is "image/svg+xml"
 and whose root element is thus an <a>'svg'</a> element), there will exist
 two distinct DOM hierarchies. The first DOM hierarchy will be for the
 referencing document (e.g., an XHTML document). The second DOM hierarchy
-will be for the referenced SVG document.  In this second DOM hierarchy, the
-root object of the document object model hierarchy is an
-<a>SVGDocument</a> object.
+will be for the referenced SVG document.
 </p>
 
-
-<p>The <a>SVGDocument</a> interface contains a similar list of attributes
-and methods to the HTMLDocument interface described in the
-<a href="http://www.w3.org/TR/REC-DOM-Level-1/level-one-html.html">Document
-Object Model (HTML) Level 1</a> chapter of the
-[<a href="refs.html#ref-DOM1">DOM1</a>] specification.
-</p>
-
-<p class="issue">We shouldn't be shadowing URL from Document, we should just inherit it.
-HTML defines title, referrer and domain.</p>
-
-<pre class="idl">interface <b>SVGDocument</b> : <a>Document</a> {
+<p class="issue">HTML defines title, referrer and domain.</p>
+
+<p>For historical reasons, <a>Window</a> objects must also have a writable, configurable,
+non-enumerable property named SVGDocument whose value is the <a>Document</a> interface object.</p>
+
+<pre class="idl">partial interface <a>Document</a> {
   readonly attribute DOMString <a href="struct.html#__svg__SVGDocument__title">title</a>;
   readonly attribute DOMString <a href="struct.html#__svg__SVGDocument__referrer">referrer</a>;
   readonly attribute DOMString <a href="struct.html#__svg__SVGDocument__domain">domain</a>;
-  readonly attribute DOMString <a href="struct.html#__svg__SVGDocument__URL">URL</a>;
   readonly attribute <a class="idlinterface" href="struct.html#InterfaceSVGSVGElement">SVGSVGElement</a> <a href="struct.html#__svg__SVGDocument__rootElement">rootElement</a>;
 };</pre><dl class="interface">
 <dt class="attributes-header">Attributes:</dt>
@@ -2146,14 +2119,6 @@
 </div>
 </dd>
 
-<dt id="__svg__SVGDocument__URL" class="attribute"><b>URL</b><span class="idl-type-parenthetical"> (readonly DOMString)</span></dt>
-<dd class="attribute">
-<div>
-The complete URI of the document.
-
-</div>
-</dd>
-
 <dt id="__svg__SVGDocument__rootElement" class="attribute"><b>rootElement</b><span class="idl-type-parenthetical"> (readonly <a class="idlinterface" href="struct.html#InterfaceSVGSVGElement">SVGSVGElement</a>)</span></dt>
 <dd class="attribute">
 <div>
@@ -2165,7 +2130,6 @@
 </dd>
 </dl>
 
-
 <h3 id="InterfaceSVGSVGElement">Interface SVGSVGElement</h3>