W3C home > Mailing lists > Public > public-html-commits@w3.org > July 2011

html5/spec Overview.html,1.5059,1.5060

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 27 Jul 2011 23:07:40 +0000
To: public-html-commits@w3.org
Message-Id: <E1QmDCW-0004Jr-DF@lionel-hutz.w3.org>
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv16589

Modified Files:
	Overview.html 
Log Message:
Move createHTMLDocument() to DOM Core. (whatwg r6332)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5059
retrieving revision 1.5060
diff -u -d -r1.5059 -r1.5060
--- Overview.html	27 Jul 2011 23:04:11 -0000	1.5059
+++ Overview.html	27 Jul 2011 23:07:36 -0000	1.5060
@@ -580,8 +580,7 @@
      <li><a href="#security-document"><span class="secno">3.1.2 </span>Security</a></li>
      <li><a href="#resource-metadata-management"><span class="secno">3.1.3 </span>Resource metadata management</a></li>
      <li><a href="#dom-tree-accessors"><span class="secno">3.1.4 </span>DOM tree accessors</a></li>
-     <li><a href="#creating-documents"><span class="secno">3.1.5 </span>Creating documents</a></li>
-     <li><a href="#loading-xml-documents"><span class="secno">3.1.6 </span>Loading XML documents</a></ol></li>
+     <li><a href="#loading-xml-documents"><span class="secno">3.1.5 </span>Loading XML documents</a></ol></li>
    <li><a href="#elements"><span class="secno">3.2 </span>Elements</a>
     <ol>
      <li><a href="#semantics-0"><span class="secno">3.2.1 </span>Semantics</a></li>
@@ -7337,7 +7336,7 @@
   current address</a> must be set to <a href="#the-document-s-address">the document's
   address</a> when the <code><a href="#document">Document</a></code> is created.</span><p class="note">Interactive user agents typically expose <a href="#the-document-s-current-address">the
   document's current address</a> in their user interface.<p>When a <code><a href="#document">Document</a></code> is created by a <a href="#concept-script" title="concept-script">script</a> using the <code title="dom-DOMImplementation-createDocument"><a href="#dom-domimplementation-createdocument">createDocument()</a></code>
-  or <code title="dom-DOMHTMLImplementation-createHTMLDocument"><a href="#dom-domhtmlimplementation-createhtmldocument">createHTMLDocument()</a></code>
+  or <code title="dom-DOMHTMLImplementation-createHTMLDocument">createHTMLDocument()</code>
   APIs, <a href="#the-document-s-address">the document's address</a> is the same as <a href="#the-document-s-address">the
   document's address</a> of the <a href="#script-s-document">script's document</a>.<p>Each <code><a href="#document">Document</a></code> object has a <dfn id="reload-override-flag">reload override
   flag</dfn> that is originally unset. The flag is set by the <code title="dom-document-open"><a href="#dom-document-open">document.open()</a></code> and <code title="dom-document-open"><a href="#dom-document-open">document.write()</a></code> methods in certain
@@ -7940,57 +7939,9 @@
   </div><hr><p class="note">The <code title="dom-document-dir"><a href="#dom-document-dir">dir</a></code>
   attribute on the <code><a href="#htmldocument">HTMLDocument</a></code> interface is defined
   along with the <code title="attr-dir"><a href="#the-dir-attribute">dir</a></code> content
-  attribute.<h4 id="creating-documents"><span class="secno">3.1.5 </span>Creating documents</h4><p><a href="#xml-documents">XML documents</a> can be created from script using the
-  <code title="dom-DOMImplementation-createDocument"><a href="#dom-domimplementation-createdocument">createDocument()</a></code>
-  method on the <code><a href="#domimplementation">DOMImplementation</a></code> interface.<p><a href="#html-documents">HTML documents</a> can be created using the <code title="dom-DOMHTMLImplementation-createHTMLDocument"><a href="#dom-domhtmlimplementation-createhtmldocument">createHTMLDocument()</a></code>
-  method:<pre class="idl">[NoInterfaceObject]
-interface <dfn id="domhtmlimplementation">DOMHTMLImplementation</dfn> {
-  <a href="#document">Document</a> <a href="#dom-domhtmlimplementation-createhtmldocument" title="dom-DOMHTMLImplementation-createHTMLDocument">createHTMLDocument</a>(in DOMString title);
-};
-<a href="#domimplementation">DOMImplementation</a> implements <a href="#domhtmlimplementation">DOMHTMLImplementation</a>;</pre><dl class="domintro"><dt><var title="">document</var> = <var title="">document</var> . <code title="dom-document-implementation">implementation</code> . <code title="dom-DOMHTMLImplementation-createHTMLDocument"><a href="#dom-domhtmlimplementation-createhtmldocument">createHTMLDocument</a></code>( <var title="">title</var> )</dt>
-   <dd>
-
-    <p>Returns a new <code><a href="#document">Document</a></code>, with a basic DOM already
-    constructed with an appropriate <code><a href="#the-title-element">title</a></code> element.</p>
-
-   </dd>
-
-  </dl><div class="impl">
-
-  <p>The <dfn id="dom-domhtmlimplementation-createhtmldocument" title="dom-DOMHTMLImplementation-createHTMLDocument"><code>createHTMLDocument(<var title="">title</var>)</code></dfn> method, when invoked, must run the
-  following steps:</p>
-
-  <ol><li><p>Let <var title="">doc</var> be a newly created
-   <code><a href="#document">Document</a></code> object.</li>
-
-   <li><p>Mark <var title="">doc</var> as being an <a href="#html-documents" title="HTML
-   documents">HTML document</a>.</li>
-
-   <li><p>Create a <code><a href="#documenttype">DocumentType</a></code> node with the <code title="">name</code> attribute set to the string "<code title="">html</code>", and the other attributes specific to
-   <code><a href="#documenttype">DocumentType</a></code> objects set to the empty string, null,
-   and empty lists, as appropriate. Append the newly created node to
-   <var title="">doc</var>.</li>
-
-   <li><p>Create an <code><a href="#the-html-element">html</a></code> element, and append it to <var title="">doc</var>.</li>
-
-   <li><p>Create a <code><a href="#the-head-element">head</a></code> element, and append it to the
-   <code><a href="#the-html-element">html</a></code> element created in the previous step.</p>
-
-   <li><p>Create a <code><a href="#the-title-element">title</a></code> element, and append it to the
-   <code><a href="#the-head-element">head</a></code> element created in the previous step.</p>
-
-   <li><p>Create a <code><a href="#text">Text</a></code> node, and set its <code title="">data</code> attribute to the string given by the method's
-   argument (which could be the empty string). Append it to the
-   <code><a href="#the-title-element">title</a></code> element created in the previous step.</p>
-
-   <li><p>Create a <code><a href="#the-body-element">body</a></code> element, and append it to the
-   <code><a href="#the-html-element">html</a></code> element created in the earlier step.</p>
-
-   <li><p>Return <var title="">doc</var>.</li>
-
-  </ol></div><div class="impl"> 
+  attribute.<div class="impl"> 
 
-  <h4 id="loading-xml-documents"><span class="secno">3.1.6 </span>Loading XML documents</h4>
+  <h4 id="loading-xml-documents"><span class="secno">3.1.5 </span>Loading XML documents</h4>
 
   <p>A <code><a href="#document">Document</a></code> object that is an <a href="#xml-documents" title="XML
   documents">XML document</a> that was created by the <code title="dom-DOMImplementation-createDocument"><a href="#dom-domimplementation-createdocument">DOMImplementation.createDocument()</a></code>
Received on Wednesday, 27 July 2011 23:07:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 July 2011 23:07:45 GMT