[html5] r851 - /

whatwg at whatwg.org whatwg at whatwg.org
Thu May 31 18:24:35 PDT 2007


Author: ianh
Date: 2007-05-31 18:24:34 -0700 (Thu, 31 May 2007)
New Revision: 851

Modified:
   index
   source
Log:
[] (0) Define document.lastModified, fix cross-references to document.dir.

Modified: index
===================================================================
--- index	2007-06-01 01:04:52 UTC (rev 850)
+++ index	2007-06-01 01:24:34 UTC (rev 851)
@@ -2370,7 +2370,8 @@
            attribute DOMString <a href="#domain" title=dom-document-domain>domain</a>;
   readonly attribute DOMString <a href="#referrer" title=dom-document-referrer>referrer</a>;
            attribute DOMString <a href="#cookie0" title=dom-document-cookie>cookie</a>;
-           attribute DOMString <a href="#dir1" title=dom-dir>dir</a>;
+           attribute DOMString <a href="#dir1" title=dom-document-dir>dir</a>;
+  readonly attribute DOMString <a href="#lastmodified" title=dom-document-lastModified>lastModified</a>;
 
   // <a href="#dom-tree0">DOM tree accessors</a>
            attribute DOMString <a href="#document.title" title=dom-document-title>title</a>;
@@ -2513,6 +2514,51 @@
    cookies are sent to which parts of the site, and are not in any way a
    security feature.
 
+  <p>The <dfn id=lastmodified
+   title=dom-document-lastModified><code>lastModified</code></dfn> attribute,
+   on getting, must return the date and time of the <code>Document</code>'s
+   source file's last modification, in the user's local timezone, in the
+   following format:
+
+  <ol>
+   <li> The month component of the date.
+
+   <li> A U+002F SOLIDUS character ('/').
+
+   <li> The day component of the date.
+
+   <li> A U+002F SOLIDUS character ('/').
+
+   <li> The last two digits of the year component of the date.
+
+   <li> A U+0020 SPACE character.
+
+   <li> The hours component of the time.
+
+   <li> A U+003A COLON character (':').
+
+   <li> The minutes component of the time.
+
+   <li> A U+003A COLON character (':').
+
+   <li> The seconds component of the time.
+  </ol>
+
+  <p>All the numeric components above must be given as two digits in the
+   range U+0030 DIGIT ZERO to U+0039 DIGIT NINE representing the number in
+   base ten, zero-padded if necessary.
+
+  <p>The <code>Document</code>'s source file's last modification date and
+   time must be derived from relevant features of the networking protocols
+   used, e.g. from the value of the HTTP <code title="">Last-Modified</code>
+   header of the document, or from metadata in the filesystem for local
+   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 class=note>The <code title=dom-document-dir->dir</code> attribute on the
+   <code><a href="#htmldocument">HTMLDocument</a></code> interface is defined
+   along with the <code title=attr-dom>dom</code> content attribute.
+
   <h3 id=elements><span class=secno>2.2. </span>Elements</h3>
 
   <p>The nodes representing <a href="#html-elements">HTML elements</a> in the
@@ -2539,7 +2585,7 @@
            attribute DOMString <a href="#id0" title=dom-id>id</a>;
            attribute DOMString <a href="#title0" title=dom-title>title</a>;
            attribute DOMString <a href="#lang0" title=dom-lang>lang</a>;
-           attribute DOMString <a href="#dir1" title=dom-dir>dir</a>;
+           attribute DOMString <a href="#dir0" title=dom-dir>dir</a>;
            attribute <span>DOMString</span> <a href="#classname" title=dom-className>className</a>;
   readonly attribute <a href="#domtokenlist0">DOMTokenList</a> <a href="#classlist" title=dom-classList>classList</a>;
 
@@ -6398,9 +6444,9 @@
    href="#dir">dir</a></code> content attribute of that element, <a
    href="#limited">limited to only known values</a>.
 
-  <p>The <dfn id=dir1 title=dom-dir><code>dir</code></dfn> DOM attribute on
-   <code><a href="#htmldocument">HTMLDocument</a></code> objects must <a
-   href="#reflect">reflect</a> the <code title=attr-dir><a
+  <p>The <dfn id=dir1 title=dom-document-dir><code>dir</code></dfn> DOM
+   attribute on <code><a href="#htmldocument">HTMLDocument</a></code> objects
+   must <a href="#reflect">reflect</a> the <code title=attr-dir><a
    href="#dir">dir</a></code> content attribute of <a href="#the-html0">the
    <code>html</code> element</a>, if any, <a href="#limited">limited to only
    known values</a>. If there is no such element, then the attribute must

Modified: source
===================================================================
--- source	2007-06-01 01:04:52 UTC (rev 850)
+++ source	2007-06-01 01:24:34 UTC (rev 851)
@@ -873,7 +873,8 @@
            attribute DOMString <span title="dom-document-domain">domain</span>;
   readonly attribute DOMString <span title="dom-document-referrer">referrer</span>;
            attribute DOMString <span title="dom-document-cookie">cookie</span>;
-           attribute DOMString <span title="dom-dir">dir</span>;
+           attribute DOMString <span title="dom-document-dir">dir</span>;
+  readonly attribute DOMString <span title="dom-document-lastModified">lastModified</span>;
 
   // <span>DOM tree accessors</span>
            attribute DOMString <span title="dom-document-title">title</span>;
@@ -1020,7 +1021,58 @@
   are not in any way a security feature.</p>
 
 
+  <p>The <dfn
+  title="dom-document-lastModified"><code>lastModified</code></dfn>
+  attribute, on getting, must return the date and time of the
+  <code>Document</code>'s source file's last modification, in the
+  user's local timezone, in the following format:</p>
 
+  <ol>
+
+   <li> The month component of the date. </li>
+
+   <li> A U+002F SOLIDUS character ('/'). </li>
+
+   <li> The day component of the date. </li>
+
+   <li> A U+002F SOLIDUS character ('/'). </li>
+
+   <li> The last two digits of the year component of the date. </li>
+
+   <li> A U+0020 SPACE character. </li>
+
+   <li> The hours component of the time. </li>
+
+   <li> A U+003A COLON character (':'). </li>
+
+   <li> The minutes component of the time. </li>
+
+   <li> A U+003A COLON character (':'). </li>
+
+   <li> The seconds component of the time. </li>
+
+  </ol>
+
+  <p>All the numeric components above must be given as two digits in
+  the range U+0030 DIGIT ZERO to U+0039 DIGIT NINE representing the
+  number in base ten, zero-padded if necessary.</p>
+
+  <p>The <code>Document</code>'s source file's last modification date
+  and time must be derived from relevant features of the networking
+  protocols used, e.g. from the value of the HTTP <code
+  title="">Last-Modified</code> header of the document, or from
+  metadata in the filesystem for local 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>
+
+
+  <p class="note">The <code title="dom-document-dir-">dir</code>
+  attribute on the <code>HTMLDocument</code> interface is defined
+  along with the <code title="attr-dom">dom</code> content
+  attribute.</p>
+
+
+
   <h3>Elements</h3>
 
   <p>The nodes representing <span>HTML elements</span> in the DOM must
@@ -5047,12 +5099,13 @@
   title="attr-dir">dir</code> content attribute of that element,
   <span>limited to only known values</span>.</p>
 
-  <p>The <dfn title="dom-dir"><code>dir</code></dfn> DOM attribute on
-  <code>HTMLDocument</code> objects must <span>reflect</span> the
-  <code title="attr-dir">dir</code> content attribute of <span>the
-  <code>html</code> element</span>, if any, <span>limited to only
-  known values</span>. If there is no such element, then the attribute
-  must return the empty string and do nothing on setting.</p>
+  <p>The <dfn title="dom-document-dir"><code>dir</code></dfn> DOM
+  attribute on <code>HTMLDocument</code> objects must
+  <span>reflect</span> the <code title="attr-dir">dir</code> content
+  attribute of <span>the <code>html</code> element</span>, if any,
+  <span>limited to only known values</span>. If there is no such
+  element, then the attribute must return the empty string and do
+  nothing on setting.</p>
 
 
   <h4 id="classes">The <dfn title="attr-class"><code>class</code></dfn> attribute</h4>




More information about the Commit-Watchers mailing list