[html5] r1055 - /
whatwg at whatwg.org
whatwg at whatwg.org
Fri Oct 12 17:51:55 PDT 2007
Author: ianh
Date: 2007-10-12 17:51:54 -0700 (Fri, 12 Oct 2007)
New Revision: 1055
Modified:
index
source
Log:
[go] (2) Fix currentLoop mathematics.
Modified: index
===================================================================
--- index 2007-10-12 20:49:41 UTC (rev 1054)
+++ index 2007-10-13 00:51:54 UTC (rev 1055)
@@ -22,7 +22,7 @@
<h1 id=html-5>HTML 5</h1>
- <h2 class="no-num no-toc" id=working>Working Draft — 12 October 2007</h2>
+ <h2 class="no-num no-toc" id=working>Working Draft — 13 October 2007</h2>
<p>You can take part in this work. <a
href="http://www.whatwg.org/mailing-list">Join the working group's
@@ -14362,13 +14362,13 @@
<li>
<p>If the <code title=dom-media-loopCount><a
href="#loopcount0">loopCount</a></code> DOM attribute's value is less
- than the <code title=dom-media-currentLoop><a
+ than or equal to the <code title=dom-media-currentLoop><a
href="#currentloop">currentLoop</a></code> DOM attribute's value, then
the <code title=dom-media-currentLoop><a
href="#currentloop">currentLoop</a></code> DOM attribute's value must be
- set to the value of the <code title=dom-media-loopCount><a
- href="#loopcount0">loopCount</a></code> DOM attribute's value (which
- will make the current loop the last loop).
+ set to <span><code title=dom-media-loopCount><a
+ href="#loopcount0">loopCount</a></code>-1</span> (which will make the
+ current loop the last loop).
<li>
<p>If the <a href="#media5">media element</a>'s <code
@@ -14396,22 +14396,24 @@
<li>
<p>If the <code title=dom-media-currentLoop><a
- href="#currentloop">currentLoop</a></code> is less than <code
- title=dom-media-loopCount><a href="#loopcount0">loopCount</a></code>,
- and the <a href="#current">current playback position</a> is after the
- <var><a href="#effective1">effective loop end</a></var>, the user agent
- must <a href="#seek" title=dom-media-seek>seek</a> to the <var><a
+ href="#currentloop">currentLoop</a></code> is less than <span><code
+ title=dom-media-loopCount><a
+ href="#loopcount0">loopCount</a></code>-1</span>, and the <a
+ href="#current">current playback position</a> is after the <var><a
+ href="#effective1">effective loop end</a></var>, the user agent must <a
+ href="#seek" title=dom-media-seek>seek</a> to the <var><a
href="#effective0">effective loop start</a></var>, and increase <code
title=dom-media-loopCount><a href="#loopcount0">loopCount</a></code> by
1.
<li>
<p>If the <code title=dom-media-currentLoop><a
- href="#currentloop">currentLoop</a></code> is equal to the <code
- title=dom-media-loopCount><a href="#loopcount0">loopCount</a></code>,
- and the <a href="#current">current playback position</a> is after the
- <var><a href="#effective2">effective end</a></var>, the user agent must
- <a href="#seek" title=dom-media-seek>seek</a> to the <var><a
+ href="#currentloop">currentLoop</a></code> is equal to <span><code
+ title=dom-media-loopCount><a
+ href="#loopcount0">loopCount</a></code>-1</span>, and the <a
+ href="#current">current playback position</a> is after the <var><a
+ href="#effective2">effective end</a></var>, the user agent must <a
+ href="#seek" title=dom-media-seek>seek</a> to the <var><a
href="#effective2">effective end</a></var> and then the looping will
end.
</ol>
@@ -14588,9 +14590,9 @@
href="#current">current playback position</a> is equal to the <var><a
href="#effective2">effective end</a></var> of the <a href="#media8">media
resource</a>, and the <code title=dom-media-currentLoop><a
- href="#currentloop">currentLoop</a></code> attribute is equal to the <code
- title=dom-media-loopCount><a href="#loopcount0">loopCount</a></code> DOM
- attribute.
+ href="#currentloop">currentLoop</a></code> attribute is equal to
+ <span><code title=dom-media-loopCount><a
+ href="#loopcount0">loopCount</a></code>-1</span>.
<p>A <a href="#media5">media element</a> is said to have <dfn
id=stopped>stopped due to errors</dfn> when the element's <code
Modified: source
===================================================================
--- source 2007-10-12 20:49:41 UTC (rev 1054)
+++ source 2007-10-13 00:51:54 UTC (rev 1055)
@@ -12236,13 +12236,13 @@
<ol>
<li><p>If the <code title="dom-media-loopCount">loopCount</code>
- DOM attribute's value is less than the <code
+ DOM attribute's value is less than or equal to the <code
title="dom-media-currentLoop">currentLoop</code> DOM attribute's
value, then the <code
title="dom-media-currentLoop">currentLoop</code> DOM attribute's
- value must be set to the value of the <code
- title="dom-media-loopCount">loopCount</code> DOM attribute's value
- (which will make the current loop the last loop).</p></li>
+ value must be set to <span><code
+ title="dom-media-loopCount">loopCount</code>-1</span> (which will
+ make the current loop the last loop).</p></li>
<li><p>If the <span>media element</span>'s <code
title="dom-media-networkState">networkState</code> is in the <code
@@ -12265,19 +12265,19 @@
start</var>.</p></li>
<li><p>If the <code
- title="dom-media-currentLoop">currentLoop</code> is less than <code
- title="dom-media-loopCount">loopCount</code>, and the <span>current
- playback position</span> is after the <var>effective loop
- end</var>, the user agent must <span
+ title="dom-media-currentLoop">currentLoop</code> is less than
+ <span><code title="dom-media-loopCount">loopCount</code>-1</span>,
+ and the <span>current playback position</span> is after the
+ <var>effective loop end</var>, the user agent must <span
title="dom-media-seek">seek</span> to the <var>effective loop
start</var>, and increase <code
title="dom-media-loopCount">loopCount</code> by 1.</p></li>
<li><p>If the <code
- title="dom-media-currentLoop">currentLoop</code> is equal to the
- <code title="dom-media-loopCount">loopCount</code>, and the
- <span>current playback position</span> is after the <var>effective
- end</var>, the user agent must <span
+ title="dom-media-currentLoop">currentLoop</code> is equal to
+ <span><code title="dom-media-loopCount">loopCount</code>-1</span>,
+ and the <span>current playback position</span> is after the
+ <var>effective end</var>, the user agent must <span
title="dom-media-seek">seek</span> to the <var>effective end</var>
and then the looping will end.</p></li>
@@ -12449,8 +12449,8 @@
greater, the <span>current playback position</span> is equal to the
<var>effective end</var> of the <span>media resource</span>, and the
<code title="dom-media-currentLoop">currentLoop</code> attribute is
- equal to the <code title="dom-media-loopCount">loopCount</code> DOM
- attribute.</p>
+ equal to <span><code
+ title="dom-media-loopCount">loopCount</code>-1</span>.</p>
<p>A <span>media element</span> is said to have <dfn>stopped due to
errors</dfn> when the element's <code
More information about the Commit-Watchers
mailing list