[html5] r6329 - [e] (0) Move some Document concepts to DOM Core.

whatwg at whatwg.org whatwg at whatwg.org
Tue Jul 26 17:00:52 PDT 2011


Author: ianh
Date: 2011-07-26 17:00:51 -0700 (Tue, 26 Jul 2011)
New Revision: 6329

Modified:
   complete.html
   index
   source
Log:
[e] (0) Move some Document concepts to DOM Core.

Modified: complete.html
===================================================================
--- complete.html	2011-07-26 23:44:38 UTC (rev 6328)
+++ complete.html	2011-07-27 00:00:51 UTC (rev 6329)
@@ -3538,10 +3538,14 @@
 
      <li><dfn id=event><code>Event</code></dfn> interface</li>
      <li><dfn id=eventtarget><code>EventTarget</code></dfn> interface</li>
-     <li>The <dfn id=concept-event-type title=concept-event-type>type</dfn> of an event
+     <li>The <dfn id=concept-event-type title=concept-event-type>type</dfn> of an event</li>
 
      <li><dfn id=dom-event-target title=dom-Event-target><code>target</code></dfn> attribute</li>
 
+     <li>The <dfn id="document's-character-encoding" title="document's character encoding">character encoding</dfn> of a <code><a href=#document>Document</a></code></li>
+     <li>The distinction between <dfn id=xml-documents>XML documents</dfn> and <dfn id=html-documents>HTML documents</dfn></li>
+     <li>The terms <dfn id=quirks-mode>quirks mode</dfn>, <dfn id=limited-quirks-mode>limited-quirks mode</dfn>, and <dfn id=no-quirks-mode>no-quirks mode</dfn></li>
+
     </ul><p>The following <code><a href=#domexception>DOMException</a></code> codes are defined in
     the DOM Core specification: <a href=#refsDOMCORE>[DOMCORE]</a></p>
 
@@ -8808,12 +8812,6 @@
   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>
 
-  <p><code><a href=#document>Document</a></code> objects are assumed to be <dfn id=xml-documents>XML
-  documents</dfn> unless they are flagged as being <dfn id=html-documents>HTML
-  documents</dfn> when they are created. Whether a document is an
-  <a href=#html-documents title="HTML documents">HTML document</a> or an <a href=#xml-documents title="XML documents">XML document</a> affects the behavior of
-  certain APIs and the case-sensitivity of some selectors.</p>
-
   <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
   situations. When the flag is set, the <code><a href=#document>Document</a></code> also has
@@ -8863,10 +8861,6 @@
   readonly attribute DOMString <a href=#dom-document-referrer title=dom-document-referrer>referrer</a>;
            attribute DOMString <a href=#dom-document-cookie title=dom-document-cookie>cookie</a>;
   readonly attribute DOMString <a href=#dom-document-lastmodified title=dom-document-lastModified>lastModified</a>;
-  readonly attribute DOMString <a href=#dom-document-compatmode title=dom-document-compatMode>compatMode</a>;
-           attribute DOMString <a href=#dom-document-charset title=dom-document-charset>charset</a>;
-  readonly attribute DOMString <a href=#dom-document-characterset title=dom-document-characterSet>characterSet</a>;
-  readonly attribute DOMString <a href=#dom-document-defaultcharset title=dom-document-defaultCharset>defaultCharset</a>;
   readonly attribute DOMString <a href=#dom-document-readystate title=dom-document-readyState>readyState</a>;
 
   // <a href=#dom-tree-accessors>DOM tree accessors</a>
@@ -9145,79 +9139,6 @@
 
   <hr></div>
 
-  <dl class=domintro><dt><var title="">document</var> . <code title=dom-document-compatmode><a href=#dom-document-compatmode>compatMode</a></code></dt>
-   <dd>
-    <p>In a conforming document, returns the string "<code title="">CSS1Compat</code>". (In <a href=#quirks-mode>quirks mode</a>
-    documents, returns the string "<code title="">BackCompat</code>",
-    but a conforming document can never trigger <a href=#quirks-mode>quirks
-    mode</a>.)</p>
-   </dd>
-
-  </dl><div class=impl>
-
-  <p>A <code><a href=#document>Document</a></code> is always set to one of three modes:
-  <dfn id=no-quirks-mode>no-quirks mode</dfn>, the default; <dfn id=quirks-mode>quirks mode</dfn>, used
-  typically for legacy documents; and <dfn id=limited-quirks-mode>limited-quirks mode</dfn>,
-  also known as "almost standards" mode. The mode is only ever changed
-  from the default by the <a href=#html-parser>HTML parser</a>, based on the
-  presence, absence, or value of the DOCTYPE string.</p>
-
-  <p>The <dfn id=dom-document-compatmode title=dom-document-compatMode><code>compatMode</code></dfn> IDL
-  attribute must return the literal string "<code title="">CSS1Compat</code>" unless the document has been set to
-  <a href=#quirks-mode>quirks mode</a> by the <a href=#html-parser>HTML parser</a>, in which
-  case it must instead return the literal string "<code title="">BackCompat</code>".</p>
-
-  <hr></div>
-
-  <dl class=domintro><dt><var title="">document</var> . <code title=dom-document-charset><a href=#dom-document-charset>charset</a></code> [ = <var title="">value</var> ]</dt>
-   <dd>
-    <p>Returns the <a href="#document's-character-encoding">document's character encoding</a>.</p>
-    <p>Can be set, to dynamically change the <a href="#document's-character-encoding">document's
-    character encoding</a>.</p>
-    <p>New values that are not IANA-registered aliases supported by the user agent are ignored.</p>
-   </dd>
-
-   <dt><var title="">document</var> . <code title=dom-document-characterSet><a href=#dom-document-characterset>characterSet</a></code></dt>
-   <dd>
-    <p>Returns the <a href="#document's-character-encoding">document's character encoding</a>.</p>
-   </dd>
-
-   <dt><var title="">document</var> . <code title=dom-document-defaultCharset><a href=#dom-document-defaultcharset>defaultCharset</a></code></dt>
-   <dd>
-    <p>Returns what might be the user agent's default character
-    encoding. (The user agent might return another character encoding
-    altogether, e.g. to protect the user's privacy, or if the user
-    agent doesn't use a single default encoding.)</p>
-   </dd>
-
-  </dl><div class=impl>
-
-  <p>Documents have an associated <dfn id="document's-character-encoding" title="document's character
-  encoding">character encoding</dfn>. When a <code><a href=#document>Document</a></code>
-  object is created, the <a href="#document's-character-encoding">document's character encoding</a>
-  must be initialized to UTF-16. Various algorithms during page
-  loading affect this value, as does the <code title=dom-document-charset><a href=#dom-document-charset>charset</a></code> setter. <a href=#refsIANACHARSET>[IANACHARSET]</a></p>
-
-  <p>The <dfn id=dom-document-charset title=dom-document-charset><code>charset</code></dfn>
-  IDL attribute must, on getting, return the <a href=#preferred-mime-name>preferred MIME
-  name</a> of the <a href="#document's-character-encoding">document's character encoding</a>. On
-  setting, if the new value is an IANA-registered alias for a
-  character encoding supported by the user agent, the <a href="#document's-character-encoding">document's
-  character encoding</a> must be set to that character
-  encoding. (Otherwise, nothing happens.)</p>
-
-  <p>The <dfn id=dom-document-characterset title=dom-document-characterSet><code>characterSet</code></dfn>
-  IDL attribute must, on getting, return the <a href=#preferred-mime-name>preferred MIME
-  name</a> of the <a href="#document's-character-encoding">document's character encoding</a>.</p>
-
-  <p>The <dfn id=dom-document-defaultcharset title=dom-document-defaultCharset><code>defaultCharset</code></dfn>
-  IDL attribute must, on getting, return the <a href=#preferred-mime-name>preferred MIME
-  name</a> of a character encoding, possibly the user's default
-  encoding, or an encoding associated with the user's current
-  geographical location, or any arbitrary encoding name.</p>
-
-  <hr></div>
-
   <dl class=domintro><dt><var title="">document</var> . <code title=dom-document-readyState><a href=#dom-document-readystate>readyState</a></code></dt>
    <dd>
     <p>Returns "loading" while the <code><a href=#document>Document</a></code> is loading, "interactive" once it is finished parsing but still loading sub-resources, and "complete" once it has loaded.</p>

Modified: index
===================================================================
--- index	2011-07-26 23:44:38 UTC (rev 6328)
+++ index	2011-07-27 00:00:51 UTC (rev 6329)
@@ -3440,10 +3440,14 @@
 
      <li><dfn id=event><code>Event</code></dfn> interface</li>
      <li><dfn id=eventtarget><code>EventTarget</code></dfn> interface</li>
-     <li>The <dfn id=concept-event-type title=concept-event-type>type</dfn> of an event
+     <li>The <dfn id=concept-event-type title=concept-event-type>type</dfn> of an event</li>
 
      <li><dfn id=dom-event-target title=dom-Event-target><code>target</code></dfn> attribute</li>
 
+     <li>The <dfn id="document's-character-encoding" title="document's character encoding">character encoding</dfn> of a <code><a href=#document>Document</a></code></li>
+     <li>The distinction between <dfn id=xml-documents>XML documents</dfn> and <dfn id=html-documents>HTML documents</dfn></li>
+     <li>The terms <dfn id=quirks-mode>quirks mode</dfn>, <dfn id=limited-quirks-mode>limited-quirks mode</dfn>, and <dfn id=no-quirks-mode>no-quirks mode</dfn></li>
+
     </ul><p>The following <code><a href=#domexception>DOMException</a></code> codes are defined in
     the DOM Core specification: <a href=#refsDOMCORE>[DOMCORE]</a></p>
 
@@ -8677,12 +8681,6 @@
   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>
 
-  <p><code><a href=#document>Document</a></code> objects are assumed to be <dfn id=xml-documents>XML
-  documents</dfn> unless they are flagged as being <dfn id=html-documents>HTML
-  documents</dfn> when they are created. Whether a document is an
-  <a href=#html-documents title="HTML documents">HTML document</a> or an <a href=#xml-documents title="XML documents">XML document</a> affects the behavior of
-  certain APIs and the case-sensitivity of some selectors.</p>
-
   <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
   situations. When the flag is set, the <code><a href=#document>Document</a></code> also has
@@ -8732,10 +8730,6 @@
   readonly attribute DOMString <a href=#dom-document-referrer title=dom-document-referrer>referrer</a>;
            attribute DOMString <a href=#dom-document-cookie title=dom-document-cookie>cookie</a>;
   readonly attribute DOMString <a href=#dom-document-lastmodified title=dom-document-lastModified>lastModified</a>;
-  readonly attribute DOMString <a href=#dom-document-compatmode title=dom-document-compatMode>compatMode</a>;
-           attribute DOMString <a href=#dom-document-charset title=dom-document-charset>charset</a>;
-  readonly attribute DOMString <a href=#dom-document-characterset title=dom-document-characterSet>characterSet</a>;
-  readonly attribute DOMString <a href=#dom-document-defaultcharset title=dom-document-defaultCharset>defaultCharset</a>;
   readonly attribute DOMString <a href=#dom-document-readystate title=dom-document-readyState>readyState</a>;
 
   // <a href=#dom-tree-accessors>DOM tree accessors</a>
@@ -9014,79 +9008,6 @@
 
   <hr></div>
 
-  <dl class=domintro><dt><var title="">document</var> . <code title=dom-document-compatmode><a href=#dom-document-compatmode>compatMode</a></code></dt>
-   <dd>
-    <p>In a conforming document, returns the string "<code title="">CSS1Compat</code>". (In <a href=#quirks-mode>quirks mode</a>
-    documents, returns the string "<code title="">BackCompat</code>",
-    but a conforming document can never trigger <a href=#quirks-mode>quirks
-    mode</a>.)</p>
-   </dd>
-
-  </dl><div class=impl>
-
-  <p>A <code><a href=#document>Document</a></code> is always set to one of three modes:
-  <dfn id=no-quirks-mode>no-quirks mode</dfn>, the default; <dfn id=quirks-mode>quirks mode</dfn>, used
-  typically for legacy documents; and <dfn id=limited-quirks-mode>limited-quirks mode</dfn>,
-  also known as "almost standards" mode. The mode is only ever changed
-  from the default by the <a href=#html-parser>HTML parser</a>, based on the
-  presence, absence, or value of the DOCTYPE string.</p>
-
-  <p>The <dfn id=dom-document-compatmode title=dom-document-compatMode><code>compatMode</code></dfn> IDL
-  attribute must return the literal string "<code title="">CSS1Compat</code>" unless the document has been set to
-  <a href=#quirks-mode>quirks mode</a> by the <a href=#html-parser>HTML parser</a>, in which
-  case it must instead return the literal string "<code title="">BackCompat</code>".</p>
-
-  <hr></div>
-
-  <dl class=domintro><dt><var title="">document</var> . <code title=dom-document-charset><a href=#dom-document-charset>charset</a></code> [ = <var title="">value</var> ]</dt>
-   <dd>
-    <p>Returns the <a href="#document's-character-encoding">document's character encoding</a>.</p>
-    <p>Can be set, to dynamically change the <a href="#document's-character-encoding">document's
-    character encoding</a>.</p>
-    <p>New values that are not IANA-registered aliases supported by the user agent are ignored.</p>
-   </dd>
-
-   <dt><var title="">document</var> . <code title=dom-document-characterSet><a href=#dom-document-characterset>characterSet</a></code></dt>
-   <dd>
-    <p>Returns the <a href="#document's-character-encoding">document's character encoding</a>.</p>
-   </dd>
-
-   <dt><var title="">document</var> . <code title=dom-document-defaultCharset><a href=#dom-document-defaultcharset>defaultCharset</a></code></dt>
-   <dd>
-    <p>Returns what might be the user agent's default character
-    encoding. (The user agent might return another character encoding
-    altogether, e.g. to protect the user's privacy, or if the user
-    agent doesn't use a single default encoding.)</p>
-   </dd>
-
-  </dl><div class=impl>
-
-  <p>Documents have an associated <dfn id="document's-character-encoding" title="document's character
-  encoding">character encoding</dfn>. When a <code><a href=#document>Document</a></code>
-  object is created, the <a href="#document's-character-encoding">document's character encoding</a>
-  must be initialized to UTF-16. Various algorithms during page
-  loading affect this value, as does the <code title=dom-document-charset><a href=#dom-document-charset>charset</a></code> setter. <a href=#refsIANACHARSET>[IANACHARSET]</a></p>
-
-  <p>The <dfn id=dom-document-charset title=dom-document-charset><code>charset</code></dfn>
-  IDL attribute must, on getting, return the <a href=#preferred-mime-name>preferred MIME
-  name</a> of the <a href="#document's-character-encoding">document's character encoding</a>. On
-  setting, if the new value is an IANA-registered alias for a
-  character encoding supported by the user agent, the <a href="#document's-character-encoding">document's
-  character encoding</a> must be set to that character
-  encoding. (Otherwise, nothing happens.)</p>
-
-  <p>The <dfn id=dom-document-characterset title=dom-document-characterSet><code>characterSet</code></dfn>
-  IDL attribute must, on getting, return the <a href=#preferred-mime-name>preferred MIME
-  name</a> of the <a href="#document's-character-encoding">document's character encoding</a>.</p>
-
-  <p>The <dfn id=dom-document-defaultcharset title=dom-document-defaultCharset><code>defaultCharset</code></dfn>
-  IDL attribute must, on getting, return the <a href=#preferred-mime-name>preferred MIME
-  name</a> of a character encoding, possibly the user's default
-  encoding, or an encoding associated with the user's current
-  geographical location, or any arbitrary encoding name.</p>
-
-  <hr></div>
-
   <dl class=domintro><dt><var title="">document</var> . <code title=dom-document-readyState><a href=#dom-document-readystate>readyState</a></code></dt>
    <dd>
     <p>Returns "loading" while the <code><a href=#document>Document</a></code> is loading, "interactive" once it is finished parsing but still loading sub-resources, and "complete" once it has loaded.</p>

Modified: source
===================================================================
--- source	2011-07-26 23:44:38 UTC (rev 6328)
+++ source	2011-07-27 00:00:51 UTC (rev 6329)
@@ -2439,10 +2439,14 @@
 
      <li><dfn><code>Event</code></dfn> interface</li>
      <li><dfn><code>EventTarget</code></dfn> interface</li>
-     <li>The <dfn title="concept-event-type">type</dfn> of an event
+     <li>The <dfn title="concept-event-type">type</dfn> of an event</li>
 
      <li><dfn title="dom-Event-target"><code>target</code></dfn> attribute</li>
 
+     <li>The <dfn title="document's character encoding">character encoding</dfn> of a <code>Document</code></li>
+     <li>The distinction between <dfn>XML documents</dfn> and <dfn>HTML documents</dfn></li>
+     <li>The terms <dfn>quirks mode</dfn>, <dfn>limited-quirks mode</dfn>, and <dfn>no-quirks mode</dfn></li>
+
     </ul>
 
     <p>The following <code>DOMException</code> codes are defined in
@@ -8783,13 +8787,6 @@
   APIs, <span>the document's address</span> is the same as <span>the
   document's address</span> of the <span>script's document</span>.</p>
 
-  <p><code>Document</code> objects are assumed to be <dfn>XML
-  documents</dfn> unless they are flagged as being <dfn>HTML
-  documents</dfn> when they are created. Whether a document is an
-  <span title="HTML documents">HTML document</span> or an <span
-  title="XML documents">XML document</span> affects the behavior of
-  certain APIs and the case-sensitivity of some selectors.</p>
-
   <p>Each <code>Document</code> object has a <dfn>reload override
   flag</dfn> that is originally unset. The flag is set by the <code
   title="dom-document-open">document.open()</code> and <code
@@ -8849,10 +8846,6 @@
   readonly attribute DOMString <span title="dom-document-referrer">referrer</span>;
            attribute DOMString <span title="dom-document-cookie">cookie</span>;
   readonly attribute DOMString <span title="dom-document-lastModified">lastModified</span>;
-  readonly attribute DOMString <span title="dom-document-compatMode">compatMode</span>;
-           attribute DOMString <span title="dom-document-charset">charset</span>;
-  readonly attribute DOMString <span title="dom-document-characterSet">characterSet</span>;
-  readonly attribute DOMString <span title="dom-document-defaultCharset">defaultCharset</span>;
   readonly attribute DOMString <span title="dom-document-readyState">readyState</span>;
 
   // <span>DOM tree accessors</span>
@@ -9173,99 +9166,6 @@
 
   <dl class="domintro">
 
-   <dt><var title="">document</var> . <code title="dom-document-compatmode">compatMode</code></dt>
-   <dd>
-    <p>In a conforming document, returns the string "<code
-    title="">CSS1Compat</code>". (In <span>quirks mode</span>
-    documents, returns the string "<code title="">BackCompat</code>",
-    but a conforming document can never trigger <span>quirks
-    mode</span>.)</p>
-   </dd>
-
-  </dl>
-
-  <div class="impl">
-
-  <p>A <code>Document</code> is always set to one of three modes:
-  <dfn>no-quirks mode</dfn>, the default; <dfn>quirks mode</dfn>, used
-  typically for legacy documents; and <dfn>limited-quirks mode</dfn>,
-  also known as "almost standards" mode. The mode is only ever changed
-  from the default by the <span>HTML parser</span>, based on the
-  presence, absence, or value of the DOCTYPE string.</p>
-
-  <p>The <dfn
-  title="dom-document-compatMode"><code>compatMode</code></dfn> IDL
-  attribute must return the literal string "<code
-  title="">CSS1Compat</code>" unless the document has been set to
-  <span>quirks mode</span> by the <span>HTML parser</span>, in which
-  case it must instead return the literal string "<code
-  title="">BackCompat</code>".</p>
-
-  <hr>
-
-  </div>
-
-  <dl class="domintro">
-
-   <dt><var title="">document</var> . <code title="dom-document-charset">charset</code> [ = <var title="">value</var> ]</dt>
-   <dd>
-    <p>Returns the <span>document's character encoding</span>.</p>
-    <p>Can be set, to dynamically change the <span>document's
-    character encoding</span>.</p>
-    <p>New values that are not IANA-registered aliases supported by the user agent are ignored.</p>
-   </dd>
-
-   <dt><var title="">document</var> . <code title="dom-document-characterSet">characterSet</code></dt>
-   <dd>
-    <p>Returns the <span>document's character encoding</span>.</p>
-   </dd>
-
-   <dt><var title="">document</var> . <code title="dom-document-defaultCharset">defaultCharset</code></dt>
-   <dd>
-    <p>Returns what might be the user agent's default character
-    encoding. (The user agent might return another character encoding
-    altogether, e.g. to protect the user's privacy, or if the user
-    agent doesn't use a single default encoding.)</p>
-   </dd>
-
-  </dl>
-
-  <div class="impl">
-
-  <p>Documents have an associated <dfn title="document's character
-  encoding">character encoding</dfn>. When a <code>Document</code>
-  object is created, the <span>document's character encoding</span>
-  must be initialized to UTF-16. Various algorithms during page
-  loading affect this value, as does the <code
-  title="dom-document-charset">charset</code> setter. <a
-  href="#refsIANACHARSET">[IANACHARSET]</a></p>
-
-  <p>The <dfn title="dom-document-charset"><code>charset</code></dfn>
-  IDL attribute must, on getting, return the <span>preferred MIME
-  name</span> of the <span>document's character encoding</span>. On
-  setting, if the new value is an IANA-registered alias for a
-  character encoding supported by the user agent, the <span>document's
-  character encoding</span> must be set to that character
-  encoding. (Otherwise, nothing happens.)</p>
-
-  <p>The <dfn
-  title="dom-document-characterSet"><code>characterSet</code></dfn>
-  IDL attribute must, on getting, return the <span>preferred MIME
-  name</span> of the <span>document's character encoding</span>.</p>
-
-  <p>The <dfn
-  title="dom-document-defaultCharset"><code>defaultCharset</code></dfn>
-  IDL attribute must, on getting, return the <span>preferred MIME
-  name</span> of a character encoding, possibly the user's default
-  encoding, or an encoding associated with the user's current
-  geographical location, or any arbitrary encoding name.</p>
-
-  <hr>
-
-  </div>
-
-  <dl class="domintro">
-
    <dt><var title="">document</var> . <code title="dom-document-readyState">readyState</code></dt>
    <dd>
     <p>Returns "loading" while the <code>Document</code> is loading, "interactive" once it is finished parsing but still loading sub-resources, and "complete" once it has loaded.</p>




More information about the Commit-Watchers mailing list