W3C home > Mailing lists > Public > public-secondscreen@w3.org > March 2015

[presentation-api] Make the "set of presentations" variable global

From: Anssi Kostiainen via GitHub <sysbot+gh@w3.org>
Date: Tue, 17 Mar 2015 13:08:41 +0000
To: public-secondscreen@w3.org
Message-ID: <issues.opened-62391196-1426597720-sysbot+gh@w3.org>
anssiko has just created a new issue for 
https://github.com/w3c/presentation-api:

== Make the "set of presentations" variable global ==
We refer to the variable D in the "Starting a presentation session" 
algorithm [1] without first declaring and initializing it:

>Add (S.url, S.id, S) to D.

Since we refer to D in many places and it holds global state, we 
should define D as a global variable, and refer to the global from 
within related algorithms. Something like:

>Each XXXX has a &lt;dfn&gt;set of presentations&lt;dfn&gt;.

And then link to the global definition from within the algorithms, 
e.g.:

>Add (S.url, S.id, S) to &lt;a&gt;set of presentations&lt;/a&gt;.

What would be XXXX above i.e. what do we mean by "known by the user 
agent" specifically? Is the set of presentations associated with the 
document's origin similarly to e.g. Web Storage [2]? If so, we could 
reuse some of the prose from that spec and adapt.

[1] 
http://w3c.github.io/presentation-api/#starting-a-presentation-session
[2] http://www.w3.org/TR/webstorage/#the-sessionstorage-attribute

See https://github.com/w3c/presentation-api/issues/65
Received on Tuesday, 17 March 2015 13:08:54 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 17 March 2015 13:08:54 UTC