- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 20 Oct 2009 22:37:22 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec-author-view In directory hutz:/tmp/cvs-serv21776 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 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: Examples for type=datetime and type=datetime-local. (whatwg r4214) [updated by splitter] Index: infrastructure.html =================================================================== RCS file: /sources/public/html5/spec-author-view/infrastructure.html,v retrieving revision 1.399 retrieving revision 1.400 diff -u -d -r1.399 -r1.400 --- infrastructure.html 20 Oct 2009 21:57:16 -0000 1.399 +++ infrastructure.html 20 Oct 2009 22:37:19 -0000 1.400 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</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.397 retrieving revision 1.398 diff -u -d -r1.397 -r1.398 --- text-level-semantics.html 20 Oct 2009 21:57:17 -0000 1.397 +++ text-level-semantics.html 20 Oct 2009 22:37:20 -0000 1.398 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</p> </div><div> <a href="semantics.html">← 4 The elements of HTML</a> – <a href="Overview.html#contents">Table of contents</a> – Index: history.html =================================================================== RCS file: /sources/public/html5/spec-author-view/history.html,v retrieving revision 1.399 retrieving revision 1.400 diff -u -d -r1.399 -r1.400 --- history.html 20 Oct 2009 21:57:16 -0000 1.399 +++ history.html 20 Oct 2009 22:37:19 -0000 1.400 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</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.398 retrieving revision 1.399 diff -u -d -r1.398 -r1.399 --- tabular-data.html 20 Oct 2009 21:57:17 -0000 1.398 +++ tabular-data.html 20 Oct 2009 22:37:20 -0000 1.399 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</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.398 retrieving revision 1.399 diff -u -d -r1.398 -r1.399 --- microdata.html 20 Oct 2009 21:57:16 -0000 1.398 +++ microdata.html 20 Oct 2009 22:37:20 -0000 1.399 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</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.400 retrieving revision 1.401 diff -u -d -r1.400 -r1.401 --- Overview.html 20 Oct 2009 21:57:15 -0000 1.400 +++ Overview.html 20 Oct 2009 22:37:19 -0000 1.401 @@ -241,7 +241,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.3359. +This is revision 1.3360. </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.398 retrieving revision 1.399 diff -u -d -r1.398 -r1.399 --- embedded-content-0.html 20 Oct 2009 21:57:15 -0000 1.398 +++ embedded-content-0.html 20 Oct 2009 22:37:19 -0000 1.399 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</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.401 retrieving revision 1.402 diff -u -d -r1.401 -r1.402 --- dom.html 20 Oct 2009 21:57:15 -0000 1.401 +++ dom.html 20 Oct 2009 22:37:19 -0000 1.402 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</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.398 retrieving revision 1.399 diff -u -d -r1.398 -r1.399 --- acknowledgements.html 20 Oct 2009 21:57:15 -0000 1.398 +++ acknowledgements.html 20 Oct 2009 22:37:19 -0000 1.399 @@ -218,7 +218,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.3359.</p> +<p>This is revision 1.3360.</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.400 retrieving revision 1.401 diff -u -d -r1.400 -r1.401 --- the-canvas-element.html 20 Oct 2009 21:57:17 -0000 1.400 +++ the-canvas-element.html 20 Oct 2009 22:37:20 -0000 1.401 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</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.398 retrieving revision 1.399 diff -u -d -r1.398 -r1.399 --- iana-considerations.html 20 Oct 2009 21:57:16 -0000 1.398 +++ iana-considerations.html 20 Oct 2009 22:37:19 -0000 1.399 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</p> </div><div> <a href="obsolete.html">← 11 Obsolete features</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.400 retrieving revision 1.401 diff -u -d -r1.400 -r1.401 --- forms.html 20 Oct 2009 21:57:16 -0000 1.400 +++ forms.html 20 Oct 2009 22:37:19 -0000 1.401 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</p> </div><div> <a href="tabular-data.html">← 4.9 Tabular data</a> – <a href="Overview.html#contents">Table of contents</a> – @@ -2200,6 +2200,25 @@ <code class="no-backref" title="dom-textarea/input-select"><a href="#dom-textarea-input-select">select()</a></code> and <code class="no-backref" title="dom-textarea/input-setSelectionRange"><a href="#dom-textarea-input-setselectionrange">setSelectionRange()</a></code> methods.</p> + </div><div class="example"> + + <p>The following fragment shows part of a calendar application. A + user can specify a date and time for a meeting (in his local time + zone, probably, though the user agent can allow the user to change + that), and since the submitted data includes the time-zone offset, + the application can ensure that the meeting is shown at the correct + time regardless of the time zones used by all the participants.</p> + + <pre><fieldset> + <legend>Add Meeting</legend> + <p><label>Meeting name: <input type=text name="meeting.label"></label> + <p><label>Meeting time: <input type=datetime name="meeting.start"></label> +</fieldset></pre> + + <p>Had the application used the <code title="attr-input-type-datetime-local"><a href="#local-date-and-time-state">datetime-local</a></code> type + instead, the calendar application would have also had to explicitly + determine which time zone the user intended.</p> + </div><h6 id="date-state"><span class="secno">4.10.5.1.8 </span><dfn title="attr-input-type-date">Date</dfn> state</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <code><a href="#the-input-element">input</a></code> element <a href="#represents">represents</a> a control for setting the element's <a href="#concept-fe-value" title="concept-fe-value">value</a> to a string representing a specific <a href="infrastructure.html#concept-date" title="concept-date">date</a>.</p><p>The <code title="attr-input-value"><a href="#attr-input-value">value</a></code> attribute, if @@ -2517,6 +2536,32 @@ <code class="no-backref" title="dom-textarea/input-select"><a href="#dom-textarea-input-select">select()</a></code> and <code class="no-backref" title="dom-textarea/input-setSelectionRange"><a href="#dom-textarea-input-setselectionrange">setSelectionRange()</a></code> methods.</p> + </div><div class="example"> + + <p>The following example shows part of a flight booking + application. The application uses an <code><a href="#the-input-element">input</a></code> element + with its <code title="attr-input-type"><a href="#attr-input-type">type</a></code> attribute set to + <code title="attr-input-type-datetime-local"><a href="#local-date-and-time-state">datetime-local</a></code>, + and it then interprets the given date and time in the time zone of + the selected airport.</p> + + <pre><fieldset> + <legend>Destination</legend> + <p><label>Airport: <input type=text name=to list=airports></label></p> + <p><label>Departure time: <input type=datetime-local name=totime step=3600></label></p> +</fieldset> +<datalist id=airports> + <option value=ATL label="Atlanta"> + <option value=MEM label="Memphis"> + <option value=LHR label="London Heathrow"> + <option value=LAX label="Los Angeles"> + <option value=FRA label="Frankfurt"> +</datalist></pre> + + <p>If the application instead used the <code title="attr-input-type-datetime"><a href="#date-and-time-state">datetime</a></code> type, then the + user would have to work out the time-zone conversions himself, + which is clearly not a good user experience!</p> + </div><h6 id="number-state"><span class="secno">4.10.5.1.13 </span><dfn title="attr-input-type-number">Number</dfn> state</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <code><a href="#the-input-element">input</a></code> element <a href="#represents">represents</a> a control for setting the element's <a href="#concept-fe-value" title="concept-fe-value">value</a> to a string representing a number.</p><p>The <code title="attr-input-value"><a href="#attr-input-value">value</a></code> attribute, if Index: interactive-elements.html =================================================================== RCS file: /sources/public/html5/spec-author-view/interactive-elements.html,v retrieving revision 1.398 retrieving revision 1.399 diff -u -d -r1.398 -r1.399 --- interactive-elements.html 20 Oct 2009 21:57:16 -0000 1.398 +++ interactive-elements.html 20 Oct 2009 22:37:19 -0000 1.399 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</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.400 retrieving revision 1.401 diff -u -d -r1.400 -r1.401 --- editing.html 20 Oct 2009 21:57:15 -0000 1.400 +++ editing.html 20 Oct 2009 22:37:19 -0000 1.401 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</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.400 retrieving revision 1.401 diff -u -d -r1.400 -r1.401 --- video.html 20 Oct 2009 21:57:17 -0000 1.400 +++ video.html 20 Oct 2009 22:37:20 -0000 1.401 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</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.401 retrieving revision 1.402 diff -u -d -r1.401 -r1.402 --- browsers.html 20 Oct 2009 21:57:15 -0000 1.401 +++ browsers.html 20 Oct 2009 22:37:19 -0000 1.402 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</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.397 retrieving revision 1.398 diff -u -d -r1.397 -r1.398 --- the-xhtml-syntax.html 20 Oct 2009 21:57:17 -0000 1.397 +++ the-xhtml-syntax.html 20 Oct 2009 22:37:20 -0000 1.398 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</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.398 retrieving revision 1.399 diff -u -d -r1.398 -r1.399 --- offline.html 20 Oct 2009 21:57:16 -0000 1.398 +++ offline.html 20 Oct 2009 22:37:20 -0000 1.399 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</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.401 retrieving revision 1.402 diff -u -d -r1.401 -r1.402 --- syntax.html 20 Oct 2009 21:57:16 -0000 1.401 +++ syntax.html 20 Oct 2009 22:37:20 -0000 1.402 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</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.399 retrieving revision 1.400 diff -u -d -r1.399 -r1.400 --- obsolete.html 20 Oct 2009 21:57:16 -0000 1.399 +++ obsolete.html 20 Oct 2009 22:37:20 -0000 1.400 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</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.399 retrieving revision 1.400 diff -u -d -r1.399 -r1.400 --- named-character-references.html 20 Oct 2009 21:57:16 -0000 1.399 +++ named-character-references.html 20 Oct 2009 22:37:20 -0000 1.400 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</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.398 retrieving revision 1.399 diff -u -d -r1.398 -r1.399 --- references.html 20 Oct 2009 21:57:16 -0000 1.398 +++ references.html 20 Oct 2009 22:37:20 -0000 1.399 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</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.400 retrieving revision 1.401 diff -u -d -r1.400 -r1.401 --- semantics.html 20 Oct 2009 21:57:16 -0000 1.400 +++ semantics.html 20 Oct 2009 22:37:20 -0000 1.401 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</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.398 retrieving revision 1.399 diff -u -d -r1.398 -r1.399 --- index.html 20 Oct 2009 21:57:16 -0000 1.398 +++ index.html 20 Oct 2009 22:37:19 -0000 1.399 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</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.400 retrieving revision 1.401 diff -u -d -r1.400 -r1.401 --- comms.html 20 Oct 2009 21:57:15 -0000 1.400 +++ comms.html 20 Oct 2009 22:37:19 -0000 1.401 @@ -219,7 +219,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.3359.</p> +<p>This is revision 1.3360.</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.401 retrieving revision 1.402 diff -u -d -r1.401 -r1.402 --- spec.html 20 Oct 2009 21:57:16 -0000 1.401 +++ spec.html 20 Oct 2009 22:37:20 -0000 1.402 @@ -239,7 +239,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.3359. +This is revision 1.3360. </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 @@ -15770,6 +15770,25 @@ <code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code> and <code class=no-backref title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code> methods.</p> + </div><div class=example> + + <p>The following fragment shows part of a calendar application. A + user can specify a date and time for a meeting (in his local time + zone, probably, though the user agent can allow the user to change + that), and since the submitted data includes the time-zone offset, + the application can ensure that the meeting is shown at the correct + time regardless of the time zones used by all the participants.</p> + + <pre><fieldset> + <legend>Add Meeting</legend> + <p><label>Meeting name: <input type=text name="meeting.label"></label> + <p><label>Meeting time: <input type=datetime name="meeting.start"></label> +</fieldset></pre> + + <p>Had the application used the <code title=attr-input-type-datetime-local><a href=#local-date-and-time-state>datetime-local</a></code> type + instead, the calendar application would have also had to explicitly + determine which time zone the user intended.</p> + </div><h6 id=date-state><span class=secno>4.10.5.1.8 </span><dfn title=attr-input-type-date>Date</dfn> state</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <code><a href=#the-input-element>input</a></code> element <a href=#represents>represents</a> a control for setting the element's <a href=#concept-fe-value title=concept-fe-value>value</a> to a string representing a specific <a href=#concept-date title=concept-date>date</a>.</p><p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if @@ -16087,6 +16106,32 @@ <code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code> and <code class=no-backref title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code> methods.</p> + </div><div class=example> + + <p>The following example shows part of a flight booking + application. The application uses an <code><a href=#the-input-element>input</a></code> element + with its <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute set to + <code title=attr-input-type-datetime-local><a href=#local-date-and-time-state>datetime-local</a></code>, + and it then interprets the given date and time in the time zone of + the selected airport.</p> + + <pre><fieldset> + <legend>Destination</legend> + <p><label>Airport: <input type=text name=to list=airports></label></p> + <p><label>Departure time: <input type=datetime-local name=totime step=3600></label></p> +</fieldset> +<datalist id=airports> + <option value=ATL label="Atlanta"> + <option value=MEM label="Memphis"> + <option value=LHR label="London Heathrow"> + <option value=LAX label="Los Angeles"> + <option value=FRA label="Frankfurt"> +</datalist></pre> + + <p>If the application instead used the <code title=attr-input-type-datetime><a href=#date-and-time-state>datetime</a></code> type, then the + user would have to work out the time-zone conversions himself, + which is clearly not a good user experience!</p> + </div><h6 id=number-state><span class=secno>4.10.5.1.13 </span><dfn title=attr-input-type-number>Number</dfn> state</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <code><a href=#the-input-element>input</a></code> element <a href=#represents>represents</a> a control for setting the element's <a href=#concept-fe-value title=concept-fe-value>value</a> to a string representing a number.</p><p>The <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, if Index: introduction.html =================================================================== RCS file: /sources/public/html5/spec-author-view/introduction.html,v retrieving revision 1.399 retrieving revision 1.400 diff -u -d -r1.399 -r1.400 --- introduction.html 20 Oct 2009 21:57:16 -0000 1.399 +++ introduction.html 20 Oct 2009 22:37:20 -0000 1.400 @@ -218,7 +218,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.3359.</p> +<p>This is revision 1.3360.</p> </div><div> <a href="Overview.html#contents">Table of contents</a> – <a href="infrastructure.html">2 Common infrastructure →</a>
Received on Tuesday, 20 October 2009 22:37:25 UTC