[html5] r1593 - /

whatwg at whatwg.org whatwg at whatwg.org
Mon May 12 03:05:30 PDT 2008


Author: ianh
Date: 2008-05-12 03:05:29 -0700 (Mon, 12 May 2008)
New Revision: 1593

Modified:
   index
   source
Log:
[e] (0) Make the definition of compatMode less confusing.

Modified: index
===================================================================
--- index	2008-05-12 09:50:35 UTC (rev 1592)
+++ index	2008-05-12 10:05:29 UTC (rev 1593)
@@ -2793,15 +2793,20 @@
    files. If the last modification date and time are not known, the attribute
    must return the string <code title="">01/01/1970 00:00:00</code>.
 
+  <p>A <code>Document</code> is always set to one of three modes: <dfn
+   id=no-quirks>no quirks mode</dfn>, the default; <dfn id=quirks>quirks
+   mode</dfn>, used typically for legacy documents; and <dfn
+   id=limited>limited quirks mode</dfn>, also known as "almost standards"
+   mode. The mode is only ever changed from the default by the <a
+   href="#html-0">HTML parser</a>, based on the presence, absence, or value
+   of the DOCTYPE string.
+
   <p>The <dfn id=compatmode
    title=dom-document-compatMode><code>compatMode</code></dfn> DOM attribute
    must return the literal string "<code title="">CSS1Compat</code>" unless
-   the document has been set to <dfn id=quirks>quirks mode</dfn> by the <a
+   the document has been set to <a href="#quirks">quirks mode</a> by the <a
    href="#html-0">HTML parser</a>, in which case it must instead return the
-   literal string "<code title="">BackCompat</code>". The document can also
-   be set to <dfn id=limited>limited quirks mode</dfn> (also known as "almost
-   standards" mode). By default, the document is set to <dfn id=no-quirks>no
-   quirks mode</dfn> (also known as "standards mode").
+   literal string "<code title="">BackCompat</code>".
 
   <div class=big-issue>
    <p>As far as parsing goes, the quirks I know of are:</p>

Modified: source
===================================================================
--- source	2008-05-12 09:50:35 UTC (rev 1592)
+++ source	2008-05-12 10:05:29 UTC (rev 1593)
@@ -1088,16 +1088,20 @@
   <code title="">01/01/1970 00:00:00</code>.</p>
 
 
+  <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> DOM
   attribute must return the literal string "<code
   title="">CSS1Compat</code>" unless the document has been set to
-  <dfn>quirks mode</dfn> by the <span>HTML parser</span>, in which
+  <span>quirks mode</span> by the <span>HTML parser</span>, in which
   case it must instead return the literal string "<code
-  title="">BackCompat</code>". The document can also be set to
-  <dfn>limited quirks mode</dfn> (also known as "almost standards"
-  mode). By default, the document is set to <dfn>no quirks mode</dfn>
-  (also known as "standards mode").</p>
+  title="">BackCompat</code>".</p>
 
   <div class="big-issue">
 




More information about the Commit-Watchers mailing list