Skip to content

Commit

Permalink
[cgiowt] (2) lastModified returns current time according to IE, not t…
Browse files Browse the repository at this point in the history
…he epoch. Also, never foster parent <input type=hidden>, <style>, or <script>.

git-svn-id: http://svn.whatwg.org/webapps@2988 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 26, 2009
1 parent 64acd5a commit 8cf70d2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 27 deletions.
23 changes: 9 additions & 14 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<div class=head>
<p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<h1>HTML 5</h1>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 25 April 2009</h2>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 26 April 2009</h2>
<p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<dl><dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -7019,8 +7019,8 @@ interface <dfn id=htmldocument>HTMLDocument</dfn> {
<dd>
<p>Returns the date of the last modification to the document, as
reported by the server, in the form "<code title="">MM/DD/YYYY&nbsp;hh:mm:ss</code>".</p>
<p>If the last modification date is not known, it is reported as
"<code title="">01/01/1970&nbsp;00:00:00</code>"
<p>If the last modification date is not known, the current time is
returned instead.</p>
</dd>

</dl><div class=impl>
Expand Down Expand Up @@ -7062,9 +7062,9 @@ interface <dfn id=htmldocument>HTMLDocument</dfn> {
<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 file system for local files. If the last modification
date and time are not known, the attribute must return the string
"<code title="">01/01/1970&nbsp;00:00:00</code>".</p>
metadata in the file system for local files. If the last
modification date and time are not known, the attribute must return
the current date and time in the above format.</p>

<hr></div>

Expand Down Expand Up @@ -57096,12 +57096,8 @@ interface <dfn id=messageport>MessagePort</dfn> {
<dt>A start tag whose tag name is one of: "style", "script"</dt>
<dd>

<p>If the <a href=#current-table>current table</a> is <a href=#tainted>tainted</a> then
act as described in the "anything else" entry below.</p>

<p>Otherwise, process the token <a href=#using-the-rules-for>using the rules for</a>
the "<a href=#parsing-main-inhead title="insertion mode: in head">in
head</a>" <a href=#insertion-mode>insertion mode</a>.</p>
<p>Process the token <a href=#using-the-rules-for>using the rules for</a> the "<a href=#parsing-main-inhead title="insertion mode: in head">in head</a>" <a href=#insertion-mode>insertion
mode</a>.</p>

</dd>

Expand All @@ -57110,8 +57106,7 @@ interface <dfn id=messageport>MessagePort</dfn> {

<p>If the token does not have an attribute with the name "type",
or if it does, but that attribute's value is not an <a href=#ascii-case-insensitive>ASCII
case-insensitive</a> match for the string "<code title="">hidden</code>", or, if the <a href=#current-table>current table</a> is
<a href=#tainted>tainted</a>, then: act as described in the "anything
case-insensitive</a> match for the string "<code title="">hidden</code>", then: act as described in the "anything
else" entry below.</p>

<p>Otherwise:</p>
Expand Down
22 changes: 9 additions & 13 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -7128,8 +7128,8 @@ interface <dfn>HTMLDocument</dfn> {
<p>Returns the date of the last modification to the document, as
reported by the server, in the form "<code
title="">MM/DD/YYYY&nbsp;hh:mm:ss</code>".</p>
<p>If the last modification date is not known, it is reported as
"<code title="">01/01/1970&nbsp;00:00:00</code>"
<p>If the last modification date is not known, the current time is
returned instead.</p>
</dd>

</dl>
Expand Down Expand Up @@ -7179,9 +7179,9 @@ interface <dfn>HTMLDocument</dfn> {
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 file system for local files. If the last modification
date and time are not known, the attribute must return the string
"<code title="">01/01/1970&nbsp;00:00:00</code>".</p>
metadata in the file system for local files. If the last
modification date and time are not known, the attribute must return
the current date and time in the above format.</p>

<hr>

Expand Down Expand Up @@ -69754,12 +69754,9 @@ interface <dfn>MessagePort</dfn> {
<dt>A start tag whose tag name is one of: "style", "script"</dt>
<dd>

<p>If the <span>current table</span> is <span>tainted</span> then
act as described in the "anything else" entry below.</p>

<p>Otherwise, process the token <span>using the rules for</span>
the "<span title="insertion mode: in head">in
head</span>" <span>insertion mode</span>.</p>
<p>Process the token <span>using the rules for</span> the "<span
title="insertion mode: in head">in head</span>" <span>insertion
mode</span>.</p>

</dd>

Expand All @@ -69769,8 +69766,7 @@ interface <dfn>MessagePort</dfn> {
<p>If the token does not have an attribute with the name "type",
or if it does, but that attribute's value is not an <span>ASCII
case-insensitive</span> match for the string "<code
title="">hidden</code>", or, if the <span>current table</span> is
<span>tainted</span>, then: act as described in the "anything
title="">hidden</code>", then: act as described in the "anything
else" entry below.</p>

<p>Otherwise:</p>
Expand Down

0 comments on commit 8cf70d2

Please sign in to comment.