Skip to content

Commit

Permalink
[e] (0) Try to make examples more useful by having dates that can't b…
Browse files Browse the repository at this point in the history
…e interpreted as DD-MM

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=26230
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@8737 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 2, 2014
1 parent beea4f3 commit de3a914
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 126 deletions.
84 changes: 42 additions & 42 deletions complete.html
Original file line number Diff line number Diff line change
Expand Up @@ -14677,11 +14677,11 @@ <h4 id=the-time-element>4.5.14 The <dfn><code>time</code></dfn> element</h4>

<dt>A <a href=#valid-date-string id=the-time-element:valid-date-string>valid date string</a><dd>

<pre class=example>&lt;time>2011-11-12&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18&lt;/time></pre>

<dt>A <a href=#valid-yearless-date-string id=the-time-element:valid-yearless-date-string>valid yearless date string</a><dd>

<pre class=example>&lt;time>11-12&lt;/time></pre>
<pre class=example>&lt;time>11-18&lt;/time></pre>

<dt>A <a href=#valid-time-string id=the-time-element:valid-time-string>valid time string</a><dd>

Expand All @@ -14691,12 +14691,12 @@ <h4 id=the-time-element>4.5.14 The <dfn><code>time</code></dfn> element</h4>

<dt>A <a href=#valid-local-date-and-time-string id=the-time-element:valid-local-date-and-time-string>valid local date and time string</a><dd>

<pre class=example>&lt;time>2011-11-12T14:54&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T14:54:39&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T14:54:39.929&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 14:54&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 14:54:39&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 14:54:39.929&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54:39&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54:39.929&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54:39&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54:39.929&lt;/time></pre>

<p class=note>Times with dates but without a time zone offset are useful for specifying events
that are observed at the same specific time in each time zone, throughout a day. For example,
Expand All @@ -14723,45 +14723,45 @@ <h4 id=the-time-element>4.5.14 The <dfn><code>time</code></dfn> element</h4>

<dt>A <a href=#valid-global-date-and-time-string id=the-time-element:valid-global-date-and-time-string-2>valid global date and time string</a><dd>

<pre class=example>&lt;time>2011-11-12T14:54Z&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T14:54:39Z&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T14:54:39.929Z&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54Z&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54:39Z&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54:39.929Z&lt;/time></pre>

<pre class=example>&lt;time>2011-11-12T14:54+0000&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T14:54:39+0000&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T14:54:39.929+0000&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54+0000&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54:39+0000&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54:39.929+0000&lt;/time></pre>

<pre class=example>&lt;time>2011-11-12T14:54+00:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T14:54:39+00:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T14:54:39.929+00:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54+00:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54:39+00:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54:39.929+00:00&lt;/time></pre>

<pre class=example>&lt;time>2011-11-12T06:54-0800&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T06:54:39-0800&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T06:54:39.929-0800&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T06:54-0800&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T06:54:39-0800&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T06:54:39.929-0800&lt;/time></pre>

<pre class=example>&lt;time>2011-11-12T06:54-08:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T06:54:39-08:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T06:54:39.929-08:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T06:54-08:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T06:54:39-08:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T06:54:39.929-08:00&lt;/time></pre>

<pre class=example>&lt;time>2011-11-12 14:54Z&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 14:54:39Z&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 14:54:39.929Z&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54Z&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54:39Z&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54:39.929Z&lt;/time></pre>

<pre class=example>&lt;time>2011-11-12 14:54+0000&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 14:54:39+0000&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 14:54:39.929+0000&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54+0000&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54:39+0000&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54:39.929+0000&lt;/time></pre>

<pre class=example>&lt;time>2011-11-12 14:54+00:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 14:54:39+00:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 14:54:39.929+00:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54+00:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54:39+00:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54:39.929+00:00&lt;/time></pre>

<pre class=example>&lt;time>2011-11-12 06:54-0800&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 06:54:39-0800&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 06:54:39.929-0800&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 06:54-0800&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 06:54:39-0800&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 06:54:39.929-0800&lt;/time></pre>

<pre class=example>&lt;time>2011-11-12 06:54-08:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 06:54:39-08:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 06:54:39.929-08:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 06:54-08:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 06:54:39-08:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 06:54:39.929-08:00&lt;/time></pre>

<p class=note>Times with dates and a time zone offset are useful for specifying specific
events, or recurring virtual events where the time is not anchored to a specific geographic
Expand All @@ -14773,7 +14773,7 @@ <h4 id=the-time-element>4.5.14 The <dfn><code>time</code></dfn> element</h4>

<dt>A <a href=#valid-week-string id=the-time-element:valid-week-string>valid week string</a><dd>

<pre class=example>&lt;time>2011-W46&lt;/time></pre>
<pre class=example>&lt;time>2011-W47&lt;/time></pre>

<dt>Four or more <a href=#ascii-digits id=the-time-element:ascii-digits>ASCII digits</a>, at least one of which is not U+0030 DIGIT ZERO (0)<dd>

Expand Down Expand Up @@ -14889,17 +14889,17 @@ <h4 id=the-time-element>4.5.14 The <dfn><code>time</code></dfn> element</h4>
<div class=example>

<p>For example, this element conveys the string "Tuesday" with the additional semantic that the
12th of November 2011 is the meaning that corresponds to "Tuesday":</p>
18th of November 2011 is the meaning that corresponds to "Tuesday":</p>

<pre>Today is &lt;time datetime="2011-11-12">Tuesday&lt;/time>.</pre>
<pre>Today is &lt;time datetime="2011-11-18">Tuesday&lt;/time>.</pre>

</div>

<div class=example>

<p>In this example, a specific time in the Pacific Standard Time timezone is specified:</p>

<pre>Your next meeting is at &lt;time datetime="2011-11-12T15:00-08:00">3pm&lt;/time>.</pre>
<pre>Your next meeting is at &lt;time datetime="2011-11-18T15:00-08:00">3pm&lt;/time>.</pre>

</div>

Expand Down
84 changes: 42 additions & 42 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -14677,11 +14677,11 @@ this specification: the &lt;abbr>WHATWG&lt;/abbr> and the

<dt>A <a href=#valid-date-string id=the-time-element:valid-date-string>valid date string</a><dd>

<pre class=example>&lt;time>2011-11-12&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18&lt;/time></pre>

<dt>A <a href=#valid-yearless-date-string id=the-time-element:valid-yearless-date-string>valid yearless date string</a><dd>

<pre class=example>&lt;time>11-12&lt;/time></pre>
<pre class=example>&lt;time>11-18&lt;/time></pre>

<dt>A <a href=#valid-time-string id=the-time-element:valid-time-string>valid time string</a><dd>

Expand All @@ -14691,12 +14691,12 @@ this specification: the &lt;abbr>WHATWG&lt;/abbr> and the

<dt>A <a href=#valid-local-date-and-time-string id=the-time-element:valid-local-date-and-time-string>valid local date and time string</a><dd>

<pre class=example>&lt;time>2011-11-12T14:54&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T14:54:39&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T14:54:39.929&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 14:54&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 14:54:39&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 14:54:39.929&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54:39&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54:39.929&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54:39&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54:39.929&lt;/time></pre>

<p class=note>Times with dates but without a time zone offset are useful for specifying events
that are observed at the same specific time in each time zone, throughout a day. For example,
Expand All @@ -14723,45 +14723,45 @@ this specification: the &lt;abbr>WHATWG&lt;/abbr> and the

<dt>A <a href=#valid-global-date-and-time-string id=the-time-element:valid-global-date-and-time-string-2>valid global date and time string</a><dd>

<pre class=example>&lt;time>2011-11-12T14:54Z&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T14:54:39Z&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T14:54:39.929Z&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54Z&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54:39Z&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54:39.929Z&lt;/time></pre>

<pre class=example>&lt;time>2011-11-12T14:54+0000&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T14:54:39+0000&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T14:54:39.929+0000&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54+0000&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54:39+0000&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54:39.929+0000&lt;/time></pre>

<pre class=example>&lt;time>2011-11-12T14:54+00:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T14:54:39+00:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T14:54:39.929+00:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54+00:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54:39+00:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T14:54:39.929+00:00&lt;/time></pre>

<pre class=example>&lt;time>2011-11-12T06:54-0800&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T06:54:39-0800&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T06:54:39.929-0800&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T06:54-0800&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T06:54:39-0800&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T06:54:39.929-0800&lt;/time></pre>

<pre class=example>&lt;time>2011-11-12T06:54-08:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T06:54:39-08:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12T06:54:39.929-08:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T06:54-08:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T06:54:39-08:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18T06:54:39.929-08:00&lt;/time></pre>

<pre class=example>&lt;time>2011-11-12 14:54Z&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 14:54:39Z&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 14:54:39.929Z&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54Z&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54:39Z&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54:39.929Z&lt;/time></pre>

<pre class=example>&lt;time>2011-11-12 14:54+0000&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 14:54:39+0000&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 14:54:39.929+0000&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54+0000&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54:39+0000&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54:39.929+0000&lt;/time></pre>

<pre class=example>&lt;time>2011-11-12 14:54+00:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 14:54:39+00:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 14:54:39.929+00:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54+00:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54:39+00:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 14:54:39.929+00:00&lt;/time></pre>

<pre class=example>&lt;time>2011-11-12 06:54-0800&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 06:54:39-0800&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 06:54:39.929-0800&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 06:54-0800&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 06:54:39-0800&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 06:54:39.929-0800&lt;/time></pre>

<pre class=example>&lt;time>2011-11-12 06:54-08:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 06:54:39-08:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-12 06:54:39.929-08:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 06:54-08:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 06:54:39-08:00&lt;/time></pre>
<pre class=example>&lt;time>2011-11-18 06:54:39.929-08:00&lt;/time></pre>

<p class=note>Times with dates and a time zone offset are useful for specifying specific
events, or recurring virtual events where the time is not anchored to a specific geographic
Expand All @@ -14773,7 +14773,7 @@ this specification: the &lt;abbr>WHATWG&lt;/abbr> and the

<dt>A <a href=#valid-week-string id=the-time-element:valid-week-string>valid week string</a><dd>

<pre class=example>&lt;time>2011-W46&lt;/time></pre>
<pre class=example>&lt;time>2011-W47&lt;/time></pre>

<dt>Four or more <a href=#ascii-digits id=the-time-element:ascii-digits>ASCII digits</a>, at least one of which is not U+0030 DIGIT ZERO (0)<dd>

Expand Down Expand Up @@ -14889,17 +14889,17 @@ this specification: the &lt;abbr>WHATWG&lt;/abbr> and the
<div class=example>

<p>For example, this element conveys the string "Tuesday" with the additional semantic that the
12th of November 2011 is the meaning that corresponds to "Tuesday":</p>
18th of November 2011 is the meaning that corresponds to "Tuesday":</p>

<pre>Today is &lt;time datetime="2011-11-12">Tuesday&lt;/time>.</pre>
<pre>Today is &lt;time datetime="2011-11-18">Tuesday&lt;/time>.</pre>

</div>

<div class=example>

<p>In this example, a specific time in the Pacific Standard Time timezone is specified:</p>

<pre>Your next meeting is at &lt;time datetime="2011-11-12T15:00-08:00">3pm&lt;/time>.</pre>
<pre>Your next meeting is at &lt;time datetime="2011-11-18T15:00-08:00">3pm&lt;/time>.</pre>

</div>

Expand Down

0 comments on commit de3a914

Please sign in to comment.