Skip to content

Commit

Permalink
Align 'Closing a PresentationSession' with updated common idioms.
Browse files Browse the repository at this point in the history
  • Loading branch information
anssiko committed Jun 5, 2015
1 parent ca2a5cb commit 3cca40a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 38 deletions.
34 changes: 15 additions & 19 deletions Overview.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -747,37 +747,33 @@ <h4>
</h4>
<p>
When the user agent is to <dfn title="close-algorithm">close a
presentation session S</dfn>, it must run the following steps:
presentation session</dfn> using <em>session</em>, it must run the
following steps:
</p>
<ol>
<li>If <em>S.state</em> is not <code>connected</code>, then:
<ol>
<li>Abort these steps.
</li>
</ol>
<li>If <span>presentation session state</span> of <em>session</em>
is not <code>connected</code>, then abort these steps.
</li>
<li>Set <em>S.state</em> to <code>disconnected</code>.
</li>
<li>Let <em>D</em> be the <span>set of presentations</span> for the
user agent.
<li>Set <span>presentation session state</span> of <em>session</em>
to <code>disconnected</code>.
</li>
<li>
<span data-anolis-spec="w3c-html">Queue a task</span> <em>T</em>
to run the following steps in order:
<span data-anolis-spec="w3c-html">Queue a task</span> to run the
following steps in order:
<ol>
<li>For each presentation <em>(U, I, S')</em> in <em>D</em>,
<li>For each <em>known session</em> in the <span>set of
presentations</span>:
<ol>
<li>Let <em>u</em> equal <em>U</em>, <em>i</em> equal <em>
I</em>, and <em>s</em> equal <em>S'</em>.
</li>
<li>If <em>u</em> is equal to <em>S.url</em> and <em>i</em>
is equal to <em>S.id</em>, run the following steps:
<li>If both <span>presentation session URL</span> and
<span>presentation session identifier</span> of <em>known
session</em> and <em>session</em> are equal, run the
following steps:
<ol>
<li>
<span data-anolis-spec="w3c-html">Queue a task</span>
to <span data-anolis-spec="w3c-html" title=
"concept-event-fire">fire an event</span> named
<code>statechange</code> at <em>s</em>.
<code>statechange</code> at <em>session</em>.
</li>
</ol>
</li>
Expand Down
34 changes: 15 additions & 19 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -816,36 +816,32 @@ <h4 id="closing-a-presentationsession"><span class="secno">6.2.3 </span>
</h4>
<p>
When the user agent is to <dfn id="close-algorithm" title="close-algorithm">close a
presentation session S</dfn>, it must run the following steps:
presentation session</dfn> using <em>session</em>, it must run the
following steps:
</p>
<ol>
<li>If <em>S.state</em> is not <code>connected</code>, then:
<ol>
<li>Abort these steps.
</li>
</ol>
<li>If <a href="#presentation-session-state">presentation session state</a> of <em>session</em>
is not <code>connected</code>, then abort these steps.
</li>
<li>Set <em>S.state</em> to <code>disconnected</code>.
</li>
<li>Let <em>D</em> be the <a href="#set-of-presentations">set of presentations</a> for the
user agent.
<li>Set <a href="#presentation-session-state">presentation session state</a> of <em>session</em>
to <code>disconnected</code>.
</li>
<li>
<a class="external" data-anolis-spec="w3c-html" href="http://www.w3.org/html/wg/drafts/html/master/webappapis.html#queue-a-task">Queue a task</a> <em>T</em>
to run the following steps in order:
<a class="external" data-anolis-spec="w3c-html" href="http://www.w3.org/html/wg/drafts/html/master/webappapis.html#queue-a-task">Queue a task</a> to run the
following steps in order:
<ol>
<li>For each presentation <em>(U, I, S')</em> in <em>D</em>,
<li>For each <em>known session</em> in the <a href="#set-of-presentations">set of
presentations</a>:
<ol>
<li>Let <em>u</em> equal <em>U</em>, <em>i</em> equal <em>
I</em>, and <em>s</em> equal <em>S'</em>.
</li>
<li>If <em>u</em> is equal to <em>S.url</em> and <em>i</em>
is equal to <em>S.id</em>, run the following steps:
<li>If both <a href="#presentation-session-url">presentation session URL</a> and
<a href="#presentation-session-identifier">presentation session identifier</a> of <em>known
session</em> and <em>session</em> are equal, run the
following steps:
<ol>
<li>
<a class="external" data-anolis-spec="w3c-html" href="http://www.w3.org/html/wg/drafts/html/master/webappapis.html#queue-a-task">Queue a task</a>
to <a class="external" data-anolis-spec="w3c-html" href="http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#concept-event-fire" title="concept-event-fire">fire an event</a> named
<code>statechange</code> at <em>s</em>.
<code>statechange</code> at <em>session</em>.
</li>
</ol>
</li>
Expand Down

0 comments on commit 3cca40a

Please sign in to comment.