Skip to content

Commit

Permalink
[c] (0) Limit the number of digits in the fraction part of a seconds …
Browse files Browse the repository at this point in the history
…time component to 3, since more than that and you lose precision when converting to milliseconds, e.g. for use with Date objects in the API.

Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@6892 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 11, 2012
1 parent 66eb4db commit 22bec57
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions complete.html
Original file line number Diff line number Diff line change
Expand Up @@ -5757,7 +5757,7 @@ <h5 id=times><span class=secno>2.5.5.4 </span>Times</h5>

<ol><li>A 002E FULL STOP character (.)</li>

<li>One or more <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing the
<li>One, two, or three <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing the
fractional part of <var title="">second</var></li>

</ol></li>
Expand Down Expand Up @@ -6393,7 +6393,7 @@ <h5 id=durations><span class=secno>2.5.5.9 </span>Durations</h5>
number of seconds.</li>

<li><p>Optionally, a U+002E FULL STOP character (.) followed
by one or more <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing a
by one, two, or three <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing a
fraction of a second.</li>

<li><p>A U+0053 LATIN CAPITAL LETTER S character.</li>
Expand Down Expand Up @@ -6428,7 +6428,7 @@ <h5 id=durations><span class=secno>2.5.5.9 </span>Durations</h5>

<li><p>If the <a href=#duration-time-component-scale>duration time component scale</a>
specified is 1 (i.e. the units are seconds), then, optionally, a
U+002E FULL STOP character (.) followed by one or more <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing a
U+002E FULL STOP character (.) followed by one, two, or three <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing a
fraction of a second.</li>

<li><p>Zero or more <a href=#space-character title="space character">space
Expand Down
6 changes: 3 additions & 3 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -5757,7 +5757,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d

<ol><li>A 002E FULL STOP character (.)</li>

<li>One or more <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing the
<li>One, two, or three <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing the
fractional part of <var title="">second</var></li>

</ol></li>
Expand Down Expand Up @@ -6393,7 +6393,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
number of seconds.</li>

<li><p>Optionally, a U+002E FULL STOP character (.) followed
by one or more <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing a
by one, two, or three <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing a
fraction of a second.</li>

<li><p>A U+0053 LATIN CAPITAL LETTER S character.</li>
Expand Down Expand Up @@ -6428,7 +6428,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d

<li><p>If the <a href=#duration-time-component-scale>duration time component scale</a>
specified is 1 (i.e. the units are seconds), then, optionally, a
U+002E FULL STOP character (.) followed by one or more <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing a
U+002E FULL STOP character (.) followed by one, two, or three <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing a
fraction of a second.</li>

<li><p>Zero or more <a href=#space-character title="space character">space
Expand Down
6 changes: 3 additions & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -5145,7 +5145,7 @@ is conforming depends on which specs apply, and leaves it at that. -->

<li>A 002E FULL STOP character (.)</li>

<li>One or more <span
<li>One, two, or three <span
title="concept-datetime-digit">digits</span>, representing the
fractional part of <var title="">second</var></li>

Expand Down Expand Up @@ -5963,7 +5963,7 @@ is conforming depends on which specs apply, and leaves it at that. -->
number of seconds.</p></li>

<li><p>Optionally, a U+002E FULL STOP character (.) followed
by one or more <span
by one, two, or three <span
title="concept-datetime-digit">digits</span>, representing a
fraction of a second.</p></li>

Expand Down Expand Up @@ -6010,7 +6010,7 @@ is conforming depends on which specs apply, and leaves it at that. -->

<li><p>If the <span>duration time component scale</span>
specified is 1 (i.e. the units are seconds), then, optionally, a
U+002E FULL STOP character (.) followed by one or more <span
U+002E FULL STOP character (.) followed by one, two, or three <span
title="concept-datetime-digit">digits</span>, representing a
fraction of a second.</p></li>

Expand Down

0 comments on commit 22bec57

Please sign in to comment.