W3C home > Mailing lists > Public > public-html-diffs@w3.org > December 2008

spec/Overview.html 1.1770 2599 First attempt at making document.readySt

From: poot <cvsmail@w3.org>
Date: Sun, 28 Dec 2008 20:20:32 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20081228112033.394322BC69@toro.w3.mag.keio.ac.jp>

First attempt at making document.readyState start off as 'complete' for
anything but a parser-associated document. (whatwg r2599)

3.2.4 DOM tree accessors
DOM attributes
current document readiness


RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1769
retrieving revision 1.1770
diff -u -d -r1.1769 -r1.1770
--- Overview.html	28 Dec 2008 06:22:03 -0000	1.1769
+++ Overview.html	28 Dec 2008 11:17:37 -0000	1.1770
@@ -1153,8 +1153,8 @@
   properties and CSS properties respectively.<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>Generally, when the specification states that a feature applies
+  opposed to using an <span>XML parser</span> or created purely
+  through the DOM).<p>Generally, when the specification states that a feature applies
   to HTML or XHTML, it also includes the other. When a feature
   specifically only applies to one of the two languages, it is called
   out by explicitly stating that it does not apply to the other
@@ -5024,12 +5024,19 @@
   encoding associated with the user's current geographical location,
   or any arbitrary encoding name.<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>The <dfn id=dom-document-readystate title=dom-document-readyState><code>readyState</code></dfn> DOM
+  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>.<h4 id=dom-tree-accessors><span class=secno>3.2.4 </span><dfn>DOM tree accessors</dfn></h4><p><dfn id=the-html-element-0>The <code>html</code> element</dfn> of a document is the
   document's root element, if there is one and it's an
Received on Sunday, 28 December 2008 11:21:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:41:41 UTC