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

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 <dfn>set of presentations<dfn>.

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

>Add (S.url, S.id, S) to <a>set of presentations</a>.

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