[html5] r2599 - [] (0) First attempt at making document.readyState start off as 'complete' for a [...]

whatwg at whatwg.org whatwg at whatwg.org
Sun Dec 28 03:17:32 PST 2008


Author: ianh
Date: 2008-12-28 03:17:31 -0800 (Sun, 28 Dec 2008)
New Revision: 2599

Modified:
   index
   source
Log:
[] (0) First attempt at making document.readyState start off as 'complete' for anything but a parser-associated document.

Modified: index
===================================================================
--- index	2008-12-28 06:21:58 UTC (rev 2598)
+++ index	2008-12-28 11:17:31 UTC (rev 2599)
@@ -1379,8 +1379,8 @@
   <p>The term <a href=#html-documents>HTML documents</a> is sometimes used in
   contrast with <a href=#xml-documents>XML documents</a> to specifically mean
   documents that were parsed using an <a href=#html-parser>HTML parser</a> (as
-  opposed to using an XML parser or created purely through the
-  DOM).</p>
+  opposed to using an <span>XML parser</span> or created purely
+  through the DOM).</p>
 
   <p>Generally, when the specification states that a feature applies
   to HTML or XHTML, it also includes the other. When a feature
@@ -6053,13 +6053,22 @@
 
   <p>Each document has a <dfn id=current-document-readiness>current document readiness</dfn>. When a
   <code>Document</code> object is created, it must have its
-  <a href=#current-document-readiness>current document readiness</a> set to the string
-  "loading". Various algorithms during page loading affect this
+  <a href=#current-document-readiness>current document readiness</a> set to the string "loading"
+  if the document is associated with an <a href=#html-parser>HTML parser</a> or an
+  <span>XML parser</span>, or to the string "complete"
+  otherwise. Various algorithms during page loading affect this
   value. When the value is set, the user agent must <a href=#fire-a-simple-event>fire a
-  simple event</a> called <code title=event-readystatechanged>readystatechanged</code> at the
+  simple event</a> called <code title=event-readystatechange>readystatechange</code> at the
   <code>Document</code> object.</p> <!-- XXX define
   document.onreadystatechange -->
 
+  <p>When a <code>Document</code> is created by an <span>XML
+  parser</span>, the <a href=#current-document-readiness>current document readiness</a> must be
+  changed to "complete" when the parser reaches the end of its input
+  stream.</p> <!-- XXX this should be in its own section, and we
+  should define 'delay the load event' for XML parsing so that we can
+  have the "interactive" state here too. -->
+
   <p>The <dfn id=dom-document-readystate title=dom-document-readyState><code>readyState</code></dfn> DOM
   attribute must, on getting, return the <a href=#current-document-readiness>current document
   readiness</a>.</p>

Modified: source
===================================================================
--- source	2008-12-28 06:21:58 UTC (rev 2598)
+++ source	2008-12-28 11:17:31 UTC (rev 2599)
@@ -402,8 +402,8 @@
   <p>The term <span>HTML documents</span> is sometimes used in
   contrast with <span>XML documents</span> to specifically mean
   documents that were parsed using an <span>HTML parser</span> (as
-  opposed to using an XML parser or created purely through the
-  DOM).</p>
+  opposed to using an <span>XML parser</span> or created purely
+  through the DOM).</p>
 
   <p>Generally, when the specification states that a feature applies
   to HTML or XHTML, it also includes the other. When a feature
@@ -6080,14 +6080,23 @@
 
   <p>Each document has a <dfn>current document readiness</dfn>. When a
   <code>Document</code> object is created, it must have its
-  <span>current document readiness</span> set to the string
-  "loading". Various algorithms during page loading affect this
+  <span>current document readiness</span> set to the string "loading"
+  if the document is associated with an <span>HTML parser</span> or an
+  <span>XML parser</span>, or to the string "complete"
+  otherwise. Various algorithms during page loading affect this
   value. When the value is set, the user agent must <span>fire a
   simple event</span> called <code
-  title="event-readystatechanged">readystatechanged</code> at the
+  title="event-readystatechange">readystatechange</code> at the
   <code>Document</code> object.</p> <!-- XXX define
   document.onreadystatechange -->
 
+  <p>When a <code>Document</code> is created by an <span>XML
+  parser</span>, the <span>current document readiness</span> must be
+  changed to "complete" when the parser reaches the end of its input
+  stream.</p> <!-- XXX this should be in its own section, and we
+  should define 'delay the load event' for XML parsing so that we can
+  have the "interactive" state here too. -->
+
   <p>The <dfn
   title="dom-document-readyState"><code>readyState</code></dfn> DOM
   attribute must, on getting, return the <span>current document




More information about the Commit-Watchers mailing list