- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 04 Sep 2009 07:46:53 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec-author-view In directory hutz:/tmp/cvs-serv4380 Modified Files: Overview.html acknowledgements.html browsers.html comms.html dom.html editing.html embedded-content-0.html forms.html history.html iana-considerations.html index.html infrastructure.html interactive-elements.html introduction.html microdata.html named-character-references.html no.html obsolete.html offline.html references.html semantics.html spec.html syntax.html tabular-data.html text-level-semantics.html the-canvas-element.html the-xhtml-syntax.html video.html Log Message: Make <time> have just a .valueAsDate attribute instead of .date/.time/.timezone, since people prefer just one attribute. (whatwg r3750) [updated by splitter] Index: infrastructure.html =================================================================== RCS file: /sources/public/html5/spec-author-view/infrastructure.html,v retrieving revision 1.55 retrieving revision 1.56 diff -u -d -r1.55 -r1.56 --- infrastructure.html 4 Sep 2009 07:37:04 -0000 1.55 +++ infrastructure.html 4 Sep 2009 07:46:51 -0000 1.56 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="introduction.html">← 1 Introduction</a> – <a href="Overview.html#contents">Table of contents</a> – Index: text-level-semantics.html =================================================================== RCS file: /sources/public/html5/spec-author-view/text-level-semantics.html,v retrieving revision 1.53 retrieving revision 1.54 diff -u -d -r1.53 -r1.54 --- text-level-semantics.html 4 Sep 2009 07:37:05 -0000 1.53 +++ text-level-semantics.html 4 Sep 2009 07:46:51 -0000 1.54 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="semantics.html">← 4 The elements of HTML</a> – <a href="Overview.html#contents">Table of contents</a> – @@ -776,9 +776,7 @@ <pre class="idl">interface <dfn id="htmltimeelement">HTMLTimeElement</dfn> : <a href="dom.html#htmlelement">HTMLElement</a> { attribute DOMString <a href="#dom-time-datetime" title="dom-time-datetime">dateTime</a>; attribute boolean <a href="#dom-time-pubdate" title="dom-time-pubDate">pubDate</a>; - readonly attribute <span>Date</span> <a href="#dom-time-date" title="dom-time-date">date</a>; - readonly attribute <span>Date</span> <a href="#dom-time-time" title="dom-time-time">time</a>; - readonly attribute <span>Date</span> <a href="#dom-time-timezone" title="dom-time-timezone">timezone</a>; + readonly attribute <span>Date</span> <a href="#dom-time-valueasdate" title="dom-time-valueAsDate">valueAsDate</a>; };</pre> </dd> </dl><p>The <code><a href="#the-time-element">time</a></code> element <a href="#represents">represents</a> either a @@ -863,61 +861,46 @@ <blockquote><p>I usually have a snack at 16h00.</p></blockquote> - </div><dl class="domintro"><dt><var title="">time</var> . <code title="dom-time-date"><a href="#dom-time-date">date</a></code></dt> + </div><dl class="domintro"><dt><var title="">time</var> . <code title="dom-time-valueAsDate"><a href="#dom-time-valueasdate">valueAsDate</a></code></dt> <dd> - <p>Returns a <code>Date</code> object representing the date - component of the element's value, at midnight in the UTC - time zone.</p> - - <p>Returns null if there is no date.</p> + <p>Returns a <code>Date</code> object representing the specified date and time.</p> </dd> - <dt><var title="">time</var> . <code title="dom-time-time"><a href="#dom-time-time">time</a></code></dt> - - <dd> - - <p>Returns a <code>Date</code> object representing the time - component of the element's value, on 1970-01-01 in the UTC - time zone.</p> - - <p>Returns null if there is no time.</p> + </dl><div> - </dd> + <p>The <dfn id="dom-time-valueasdate" title="dom-time-valueAsDate"><code>valueAsDate</code></dfn> IDL + attribute must return either null or a <code>Date</code> object + initialised to the relevant value as defined by the following + list:</p> - <dt><var title="">time</var> . <code title="dom-time-timezone"><a href="#dom-time-timezone">timezone</a></code></dt> + <dl><dt>If the <a href="#concept-time-date" title="concept-time-date">date</a> is known but + the <a href="#concept-time-time" title="concept-time-time">time</a> is not</dt> - <dd> + <dd>The time corresponding to midnight UTC (i.e. the first second) + of the given <a href="#concept-time-date" title="concept-time-date">date</a>.</dd> - <p>Returns a <code>Date</code> object representing the time - corresponding to 1970-01-01 00:00 UTC in the time zone given by the - element's value.</p> + <dt>If the <a href="#concept-time-time" title="concept-time-time">time</a> is known but + the <a href="#concept-time-date" title="concept-time-date">date</a> is not</dt> - <p>Returns null if there is no time zone.</p> + <dd>The time corresponding to the given <a href="#concept-time-time" title="concept-time-time">time</a> of 1970-01-01, with the time + zone UTC.</dd> - </dd> + <dt>If both the <a href="#concept-time-date" title="concept-time-date">date</a> and the + <a href="#concept-time-time" title="concept-time-time">time</a> are known</dt> - </dl><div> + <dd>The time corresponding to the <a href="#concept-time-date" title="concept-time-date">date</a> and <a href="#concept-time-time" title="concept-time-time">time</a>, with the given <a href="#concept-time-timezone" title="concept-time-timezone">time-zone offset</a>. - <p>The <dfn id="dom-time-date" title="dom-time-date"><code>date</code></dfn> IDL - attribute must return null if the <a href="#concept-time-date" title="concept-time-date">date</a> is unknown, and otherwise must - return the time corresponding to midnight UTC (i.e. the first - second) of the given <a href="#concept-time-date" title="concept-time-date">date</a>.</p> + </dd><dt>If neither the <a href="#concept-time-date" title="concept-time-date">date</a> nor + the <a href="#concept-time-time" title="concept-time-time">time</a> are known</dt> - <p>The <dfn id="dom-time-time" title="dom-time-time"><code>time</code></dfn> IDL attribute - must return null if the <a href="#concept-time-time" title="concept-time-time">time</a> is - unknown, and otherwise must return the time corresponding to the - given <a href="#concept-time-time" title="concept-time-time">time</a> of 1970-01-01, with - the time zone UTC.</p> + <dd>The null value.</dd> - <p>The <dfn id="dom-time-timezone" title="dom-time-timezone"><code>timezone</code></dfn> - IDL attribute must return null if the <a href="#concept-time-timezone" title="concept-time-timezone">time-zone offset</a> is unknown, - and otherwise must return the time corresponding to 1970-01-01 00:00 - UTC in the given <a href="#concept-time-timezone" title="concept-time-timezone">time-zone - offset</a>, with the time zone set to UTC (i.e. the time - corresponding to 1970-01-01 at 00:00 UTC plus the offset).</p> + </dl><p>The same <code>Date</code> object must be returned until the + <code title="attr-time-datetime"><a href="#attr-time-datetime">datetime</a></code> attribute is + removed or changed.</p> </div><div class="example"> @@ -925,32 +908,17 @@ <pre><p>Our first date was <time datetime="2006-09-23">a Saturday</time>.</p></pre> - <p>...the <code><a href="#the-time-element">time</a></code> element's <code title="dom-time-date"><a href="#dom-time-date">date</a></code> attribute would have the value - 1,158,969,600,000ms, and the <code title="dom-time-time"><a href="#dom-time-time">time</a></code> - and <code title="dom-time-timezone"><a href="#dom-time-timezone">timezone</a></code> attributes would - return null.</p> + <p>...the <code><a href="#the-time-element">time</a></code> element's <code title="dom-time-valueAsDate"><a href="#dom-time-valueasdate">valueAsDate</a></code> attribute would + have the value 1,158,969,600,000ms.</p> + </div><!-- <pre><p>We stopped talking at <time datetime="2006-09-24T05:00-07:00">5am the next morning</time>.</p></pre> --><div class="example"> <p>In the following snippet:</p> - <pre><p>We stopped talking at <time datetime="2006-09-24T05:00-07:00">5am the next morning</time>.</p></pre> - - <p>...the <code><a href="#the-time-element">time</a></code> element's <code title="dom-time-date"><a href="#dom-time-date">date</a></code> attribute would have the value - 1,159,056,000,000ms, the <code title="dom-time-time"><a href="#dom-time-time">time</a></code> - attribute would have the value 18,000,000ms, and the <code title="dom-time-timezone"><a href="#dom-time-timezone">timezone</a></code> attribute would return - −25,200,000ms. To obtain the actual time, the three attributes can - be added together, obtaining 1,159,048,800,000, which is the - specified date and time in UTC.</p> - - - <p>Finally, in the following snippet:</p> - <pre><p>Many people get up at <time>08:00</time>.</p></pre> - <p>...the <code><a href="#the-time-element">time</a></code> element's <code title="dom-time-date"><a href="#dom-time-date">date</a></code> attribute would have the value null, - the <code title="dom-time-time"><a href="#dom-time-time">time</a></code> attribute would have the - value 28,800,000ms, and the <code title="dom-time-timezone"><a href="#dom-time-timezone">timezone</a></code> attribute would return - null.</p> + <p>...the <code><a href="#the-time-element">time</a></code> element's <code title="dom-time-valueAsDate"><a href="#dom-time-valueasdate">valueAsDate</a></code> attribute would + have the value 28,800,000ms.</p> </div><div class="example"> Index: history.html =================================================================== RCS file: /sources/public/html5/spec-author-view/history.html,v retrieving revision 1.55 retrieving revision 1.56 diff -u -d -r1.55 -r1.56 --- history.html 4 Sep 2009 07:37:04 -0000 1.55 +++ history.html 4 Sep 2009 07:46:50 -0000 1.56 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="offline.html">← 6.7 Offline Web applications</a> – <a href="Overview.html#contents">Table of contents</a> – Index: tabular-data.html =================================================================== RCS file: /sources/public/html5/spec-author-view/tabular-data.html,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- tabular-data.html 4 Sep 2009 07:37:05 -0000 1.54 +++ tabular-data.html 4 Sep 2009 07:46:51 -0000 1.55 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="the-canvas-element.html">← 4.8.11 The canvas element</a> – <a href="Overview.html#contents">Table of contents</a> – Index: microdata.html =================================================================== RCS file: /sources/public/html5/spec-author-view/microdata.html,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- microdata.html 4 Sep 2009 07:37:04 -0000 1.54 +++ microdata.html 4 Sep 2009 07:46:51 -0000 1.55 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="interactive-elements.html">← 4.11 Interactive elements</a> – <a href="Overview.html#contents">Table of contents</a> – Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec-author-view/Overview.html,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- Overview.html 4 Sep 2009 07:37:04 -0000 1.54 +++ Overview.html 4 Sep 2009 07:46:50 -0000 1.55 @@ -197,7 +197,7 @@ </dl><p>This specification is available in the following formats: <a href="spec.html">single page HTML</a>, <a href="Overview.html">multipage HTML</a>. -This is revision 1.2920. +This is revision 1.2921. </p> <p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 2009 <a href="http://www.w3.org/"><abbr title="World Wide Index: embedded-content-0.html =================================================================== RCS file: /sources/public/html5/spec-author-view/embedded-content-0.html,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- embedded-content-0.html 4 Sep 2009 07:37:04 -0000 1.54 +++ embedded-content-0.html 4 Sep 2009 07:46:50 -0000 1.55 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="dom.html">← 3 Semantics, structure, and APIs of HTML documents</a> – <a href="Overview.html#contents">Table of contents</a> – Index: dom.html =================================================================== RCS file: /sources/public/html5/spec-author-view/dom.html,v retrieving revision 1.55 retrieving revision 1.56 diff -u -d -r1.55 -r1.56 --- dom.html 4 Sep 2009 07:37:04 -0000 1.55 +++ dom.html 4 Sep 2009 07:46:50 -0000 1.56 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="infrastructure.html">← 2 Common infrastructure</a> – <a href="Overview.html#contents">Table of contents</a> – Index: acknowledgements.html =================================================================== RCS file: /sources/public/html5/spec-author-view/acknowledgements.html,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- acknowledgements.html 4 Sep 2009 07:37:04 -0000 1.54 +++ acknowledgements.html 4 Sep 2009 07:46:50 -0000 1.55 @@ -175,7 +175,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="references.html">← References</a> – <a href="Overview.html#contents">Table of contents</a> Index: the-canvas-element.html =================================================================== RCS file: /sources/public/html5/spec-author-view/the-canvas-element.html,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- the-canvas-element.html 4 Sep 2009 07:37:05 -0000 1.54 +++ the-canvas-element.html 4 Sep 2009 07:46:51 -0000 1.55 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="video.html">← 4.8.7 The video element</a> – <a href="Overview.html#contents">Table of contents</a> – Index: iana-considerations.html =================================================================== RCS file: /sources/public/html5/spec-author-view/iana-considerations.html,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- iana-considerations.html 4 Sep 2009 07:37:04 -0000 1.54 +++ iana-considerations.html 4 Sep 2009 07:46:50 -0000 1.55 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="no.html">← 12 Things that you can't do with this specification because they are better handled using other technologies that are further described herein</a> – <a href="Overview.html#contents">Table of contents</a> – Index: forms.html =================================================================== RCS file: /sources/public/html5/spec-author-view/forms.html,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- forms.html 4 Sep 2009 07:37:04 -0000 1.54 +++ forms.html 4 Sep 2009 07:46:50 -0000 1.55 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="tabular-data.html">← 4.9 Tabular data</a> – <a href="Overview.html#contents">Table of contents</a> – Index: interactive-elements.html =================================================================== RCS file: /sources/public/html5/spec-author-view/interactive-elements.html,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- interactive-elements.html 4 Sep 2009 07:37:04 -0000 1.54 +++ interactive-elements.html 4 Sep 2009 07:46:51 -0000 1.55 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="forms.html">← 4.10 Forms</a> – <a href="Overview.html#contents">Table of contents</a> – Index: editing.html =================================================================== RCS file: /sources/public/html5/spec-author-view/editing.html,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- editing.html 4 Sep 2009 07:37:04 -0000 1.54 +++ editing.html 4 Sep 2009 07:46:50 -0000 1.55 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="history.html">← 6.8 Session history and navigation</a> – <a href="Overview.html#contents">Table of contents</a> – Index: video.html =================================================================== RCS file: /sources/public/html5/spec-author-view/video.html,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- video.html 4 Sep 2009 07:37:05 -0000 1.54 +++ video.html 4 Sep 2009 07:46:51 -0000 1.55 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="text-level-semantics.html">← 4.6 Text-level semantics</a> – <a href="Overview.html#contents">Table of contents</a> – Index: browsers.html =================================================================== RCS file: /sources/public/html5/spec-author-view/browsers.html,v retrieving revision 1.55 retrieving revision 1.56 diff -u -d -r1.55 -r1.56 --- browsers.html 4 Sep 2009 07:37:04 -0000 1.55 +++ browsers.html 4 Sep 2009 07:46:50 -0000 1.56 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="microdata.html">← 5 Microdata</a> – <a href="Overview.html#contents">Table of contents</a> – Index: the-xhtml-syntax.html =================================================================== RCS file: /sources/public/html5/spec-author-view/the-xhtml-syntax.html,v retrieving revision 1.53 retrieving revision 1.54 diff -u -d -r1.53 -r1.54 --- the-xhtml-syntax.html 4 Sep 2009 07:37:05 -0000 1.53 +++ the-xhtml-syntax.html 4 Sep 2009 07:46:51 -0000 1.54 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="named-character-references.html">← 9.2 Named character references</a> – <a href="Overview.html#contents">Table of contents</a> – Index: offline.html =================================================================== RCS file: /sources/public/html5/spec-author-view/offline.html,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- offline.html 4 Sep 2009 07:37:05 -0000 1.54 +++ offline.html 4 Sep 2009 07:46:51 -0000 1.55 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="browsers.html">← 6 Web browsers</a> – <a href="Overview.html#contents">Table of contents</a> – Index: syntax.html =================================================================== RCS file: /sources/public/html5/spec-author-view/syntax.html,v retrieving revision 1.55 retrieving revision 1.56 diff -u -d -r1.55 -r1.56 --- syntax.html 4 Sep 2009 07:37:05 -0000 1.55 +++ syntax.html 4 Sep 2009 07:46:51 -0000 1.56 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="comms.html">← 8 Communication</a> – <a href="Overview.html#contents">Table of contents</a> – Index: obsolete.html =================================================================== RCS file: /sources/public/html5/spec-author-view/obsolete.html,v retrieving revision 1.55 retrieving revision 1.56 diff -u -d -r1.55 -r1.56 --- obsolete.html 4 Sep 2009 07:37:05 -0000 1.55 +++ obsolete.html 4 Sep 2009 07:46:51 -0000 1.56 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="the-xhtml-syntax.html">← 10 The XHTML syntax</a> – <a href="Overview.html#contents">Table of contents</a> – Index: named-character-references.html =================================================================== RCS file: /sources/public/html5/spec-author-view/named-character-references.html,v retrieving revision 1.55 retrieving revision 1.56 diff -u -d -r1.55 -r1.56 --- named-character-references.html 4 Sep 2009 07:37:05 -0000 1.55 +++ named-character-references.html 4 Sep 2009 07:46:51 -0000 1.56 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="syntax.html">← 9 The HTML syntax</a> – <a href="Overview.html#contents">Table of contents</a> – Index: references.html =================================================================== RCS file: /sources/public/html5/spec-author-view/references.html,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- references.html 4 Sep 2009 07:37:05 -0000 1.54 +++ references.html 4 Sep 2009 07:46:51 -0000 1.55 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="index.html">← Index</a> – <a href="Overview.html#contents">Table of contents</a> – Index: semantics.html =================================================================== RCS file: /sources/public/html5/spec-author-view/semantics.html,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- semantics.html 4 Sep 2009 07:37:05 -0000 1.54 +++ semantics.html 4 Sep 2009 07:46:51 -0000 1.55 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="embedded-content-0.html">← 3.2.5.1.6 Embedded content</a> – <a href="Overview.html#contents">Table of contents</a> – Index: index.html =================================================================== RCS file: /sources/public/html5/spec-author-view/index.html,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- index.html 4 Sep 2009 07:37:04 -0000 1.54 +++ index.html 4 Sep 2009 07:46:51 -0000 1.55 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="iana-considerations.html">← IANA considerations</a> – <a href="Overview.html#contents">Table of contents</a> – Index: comms.html =================================================================== RCS file: /sources/public/html5/spec-author-view/comms.html,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- comms.html 4 Sep 2009 07:37:04 -0000 1.54 +++ comms.html 4 Sep 2009 07:46:50 -0000 1.55 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="editing.html">← 7 User Interaction</a> – <a href="Overview.html#contents">Table of contents</a> – Index: spec.html =================================================================== RCS file: /sources/public/html5/spec-author-view/spec.html,v retrieving revision 1.55 retrieving revision 1.56 diff -u -d -r1.55 -r1.56 --- spec.html 4 Sep 2009 07:37:05 -0000 1.55 +++ spec.html 4 Sep 2009 07:46:51 -0000 1.56 @@ -196,7 +196,7 @@ </dl><p>This specification is available in the following formats: <a href=spec.html>single page HTML</a>, <a href=Overview.html>multipage HTML</a>. -This is revision 1.2920. +This is revision 1.2921. </p> <p class=copyright><a href=http://www.w3.org/Consortium/Legal/ipr-notice#Copyright>Copyright</a> © 2009 <a href=http://www.w3.org/><abbr title="World Wide @@ -6954,9 +6954,7 @@ <pre class=idl>interface <dfn id=htmltimeelement>HTMLTimeElement</dfn> : <a href=#htmlelement>HTMLElement</a> { attribute DOMString <a href=#dom-time-datetime title=dom-time-datetime>dateTime</a>; attribute boolean <a href=#dom-time-pubdate title=dom-time-pubDate>pubDate</a>; - readonly attribute <span>Date</span> <a href=#dom-time-date title=dom-time-date>date</a>; - readonly attribute <span>Date</span> <a href=#dom-time-time title=dom-time-time>time</a>; - readonly attribute <span>Date</span> <a href=#dom-time-timezone title=dom-time-timezone>timezone</a>; + readonly attribute <span>Date</span> <a href=#dom-time-valueasdate title=dom-time-valueAsDate>valueAsDate</a>; };</pre> </dd> </dl><p>The <code><a href=#the-time-element>time</a></code> element <a href=#represents>represents</a> either a @@ -7041,61 +7039,46 @@ <blockquote><p>I usually have a snack at 16h00.</p></blockquote> - </div><dl class=domintro><dt><var title="">time</var> . <code title=dom-time-date><a href=#dom-time-date>date</a></code></dt> + </div><dl class=domintro><dt><var title="">time</var> . <code title=dom-time-valueAsDate><a href=#dom-time-valueasdate>valueAsDate</a></code></dt> <dd> - <p>Returns a <code>Date</code> object representing the date - component of the element's value, at midnight in the UTC - time zone.</p> - - <p>Returns null if there is no date.</p> + <p>Returns a <code>Date</code> object representing the specified date and time.</p> </dd> - <dt><var title="">time</var> . <code title=dom-time-time><a href=#dom-time-time>time</a></code></dt> - - <dd> - - <p>Returns a <code>Date</code> object representing the time - component of the element's value, on 1970-01-01 in the UTC - time zone.</p> - - <p>Returns null if there is no time.</p> + </dl><div> - </dd> + <p>The <dfn id=dom-time-valueasdate title=dom-time-valueAsDate><code>valueAsDate</code></dfn> IDL + attribute must return either null or a <code>Date</code> object + initialised to the relevant value as defined by the following + list:</p> - <dt><var title="">time</var> . <code title=dom-time-timezone><a href=#dom-time-timezone>timezone</a></code></dt> + <dl><dt>If the <a href=#concept-time-date title=concept-time-date>date</a> is known but + the <a href=#concept-time-time title=concept-time-time>time</a> is not</dt> - <dd> + <dd>The time corresponding to midnight UTC (i.e. the first second) + of the given <a href=#concept-time-date title=concept-time-date>date</a>.</dd> - <p>Returns a <code>Date</code> object representing the time - corresponding to 1970-01-01 00:00 UTC in the time zone given by the - element's value.</p> + <dt>If the <a href=#concept-time-time title=concept-time-time>time</a> is known but + the <a href=#concept-time-date title=concept-time-date>date</a> is not</dt> - <p>Returns null if there is no time zone.</p> + <dd>The time corresponding to the given <a href=#concept-time-time title=concept-time-time>time</a> of 1970-01-01, with the time + zone UTC.</dd> - </dd> + <dt>If both the <a href=#concept-time-date title=concept-time-date>date</a> and the + <a href=#concept-time-time title=concept-time-time>time</a> are known</dt> - </dl><div> + <dd>The time corresponding to the <a href=#concept-time-date title=concept-time-date>date</a> and <a href=#concept-time-time title=concept-time-time>time</a>, with the given <a href=#concept-time-timezone title=concept-time-timezone>time-zone offset</a>. - <p>The <dfn id=dom-time-date title=dom-time-date><code>date</code></dfn> IDL - attribute must return null if the <a href=#concept-time-date title=concept-time-date>date</a> is unknown, and otherwise must - return the time corresponding to midnight UTC (i.e. the first - second) of the given <a href=#concept-time-date title=concept-time-date>date</a>.</p> + </dd><dt>If neither the <a href=#concept-time-date title=concept-time-date>date</a> nor + the <a href=#concept-time-time title=concept-time-time>time</a> are known</dt> - <p>The <dfn id=dom-time-time title=dom-time-time><code>time</code></dfn> IDL attribute - must return null if the <a href=#concept-time-time title=concept-time-time>time</a> is - unknown, and otherwise must return the time corresponding to the - given <a href=#concept-time-time title=concept-time-time>time</a> of 1970-01-01, with - the time zone UTC.</p> + <dd>The null value.</dd> - <p>The <dfn id=dom-time-timezone title=dom-time-timezone><code>timezone</code></dfn> - IDL attribute must return null if the <a href=#concept-time-timezone title=concept-time-timezone>time-zone offset</a> is unknown, - and otherwise must return the time corresponding to 1970-01-01 00:00 - UTC in the given <a href=#concept-time-timezone title=concept-time-timezone>time-zone - offset</a>, with the time zone set to UTC (i.e. the time - corresponding to 1970-01-01 at 00:00 UTC plus the offset).</p> + </dl><p>The same <code>Date</code> object must be returned until the + <code title=attr-time-datetime><a href=#attr-time-datetime>datetime</a></code> attribute is + removed or changed.</p> </div><div class=example> @@ -7103,32 +7086,17 @@ <pre><p>Our first date was <time datetime="2006-09-23">a Saturday</time>.</p></pre> - <p>...the <code><a href=#the-time-element>time</a></code> element's <code title=dom-time-date><a href=#dom-time-date>date</a></code> attribute would have the value - 1,158,969,600,000ms, and the <code title=dom-time-time><a href=#dom-time-time>time</a></code> - and <code title=dom-time-timezone><a href=#dom-time-timezone>timezone</a></code> attributes would - return null.</p> + <p>...the <code><a href=#the-time-element>time</a></code> element's <code title=dom-time-valueAsDate><a href=#dom-time-valueasdate>valueAsDate</a></code> attribute would + have the value 1,158,969,600,000ms.</p> + </div><!-- <pre><p>We stopped talking at <time datetime="2006-09-24T05:00-07:00">5am the next morning</time>.</p></pre> --><div class=example> <p>In the following snippet:</p> - <pre><p>We stopped talking at <time datetime="2006-09-24T05:00-07:00">5am the next morning</time>.</p></pre> - - <p>...the <code><a href=#the-time-element>time</a></code> element's <code title=dom-time-date><a href=#dom-time-date>date</a></code> attribute would have the value - 1,159,056,000,000ms, the <code title=dom-time-time><a href=#dom-time-time>time</a></code> - attribute would have the value 18,000,000ms, and the <code title=dom-time-timezone><a href=#dom-time-timezone>timezone</a></code> attribute would return - −25,200,000ms. To obtain the actual time, the three attributes can - be added together, obtaining 1,159,048,800,000, which is the - specified date and time in UTC.</p> - - - <p>Finally, in the following snippet:</p> - <pre><p>Many people get up at <time>08:00</time>.</p></pre> - <p>...the <code><a href=#the-time-element>time</a></code> element's <code title=dom-time-date><a href=#dom-time-date>date</a></code> attribute would have the value null, - the <code title=dom-time-time><a href=#dom-time-time>time</a></code> attribute would have the - value 28,800,000ms, and the <code title=dom-time-timezone><a href=#dom-time-timezone>timezone</a></code> attribute would return - null.</p> + <p>...the <code><a href=#the-time-element>time</a></code> element's <code title=dom-time-valueAsDate><a href=#dom-time-valueasdate>valueAsDate</a></code> attribute would + have the value 28,800,000ms.</p> </div><div class=example> Index: introduction.html =================================================================== RCS file: /sources/public/html5/spec-author-view/introduction.html,v retrieving revision 1.55 retrieving revision 1.56 diff -u -d -r1.55 -r1.56 --- introduction.html 4 Sep 2009 07:37:04 -0000 1.55 +++ introduction.html 4 Sep 2009 07:46:51 -0000 1.56 @@ -175,7 +175,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="Overview.html#contents">Table of contents</a> – <a href="infrastructure.html">2 Common infrastructure →</a> Index: no.html =================================================================== RCS file: /sources/public/html5/spec-author-view/no.html,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- no.html 4 Sep 2009 07:37:05 -0000 1.54 +++ no.html 4 Sep 2009 07:46:51 -0000 1.55 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2920.</p> +<p>This is revision 1.2921.</p> </div><div> <a href="obsolete.html">← 11 Obsolete features</a> – <a href="Overview.html#contents">Table of contents</a> –
Received on Friday, 4 September 2009 07:47:05 UTC