@@ -206,14 +206,15 @@ anticipated that some APIs will be applicable to both <a>storage types</a> going
|
206 | 206 | |
207 | 207 | <h3 id=storage-keys>Storage keys</h3> |
208 | 208 | |
209 | | -<p>A <dfn>storage key</dfn> is a <a>tuple</a> consisting of an <dfn for="storage key">origin</dfn> |
210 | | -(an <a for=/>origin</a>). [[!HTML]] |
| 209 | +<p>A <dfn export>storage key</dfn> is a <a>tuple</a> consisting of an |
| 210 | +<dfn for="storage key">origin</dfn> (an <a for=/>origin</a>). [[!HTML]] |
211 | 211 | |
212 | 212 | <p class=XXX>This is expected to change; see |
213 | 213 | <a href="https://privacycg.github.io/storage-partitioning/">Client-Side Storage Partitioning</a>. |
214 | 214 | |
| 215 | +<div algorithm> |
215 | 216 | <p>To <dfn export>obtain a storage key</dfn>, given an <a for=/>environment</a> |
216 | | -<var>environment</var>, run these steps: |
| 217 | +<var>environment</var>: |
217 | 218 | |
218 | 219 | <ol> |
219 | 220 | <li><p>Let <var>key</var> be the result of running |
@@ -226,9 +227,11 @@ anticipated that some APIs will be applicable to both <a>storage types</a> going
|
226 | 227 | |
227 | 228 | <li><p>Return <var>key</var>. |
228 | 229 | </ol> |
| 230 | +</div> |
229 | 231 | |
| 232 | +<div algorithm> |
230 | 233 | <p>To <dfn export>obtain a storage key for non-storage purposes</dfn>, given an |
231 | | -<a for=/>environment</a> <var>environment</var>, run these steps: |
| 234 | +<a for=/>environment</a> <var>environment</var>: |
232 | 235 | |
233 | 236 | <ol> |
234 | 237 | <li><p>Let <var>origin</var> be <var>environment</var>'s |
@@ -238,17 +241,19 @@ anticipated that some APIs will be applicable to both <a>storage types</a> going
|
238 | 241 | |
239 | 242 | <li><p>Return a <a>tuple</a> consisting of <var>origin</var>. |
240 | 243 | </ol> |
| 244 | +</div> |
241 | 245 | |
| 246 | +<div algorithm> |
242 | 247 | <p>To determine whether a <a>storage key</a> <var>A</var> |
243 | | -<dfn export for="storage key" lt=equal>equals</dfn> <a>storage key</a> <var>B</var>, run these |
244 | | -steps: |
| 248 | +<dfn export for="storage key" lt=equal>equals</dfn> <a>storage key</a> <var>B</var>: |
245 | 249 | |
246 | 250 | <ol> |
247 | 251 | <li><p>If <var>A</var>'s <a for="storage key">origin</a> is not <a>same origin</a> with |
248 | 252 | <var>B</var>'s <a for="storage key">origin</a>, then return false. |
249 | 253 | |
250 | 254 | <li><p>Return true. |
251 | 255 | </ol> |
| 256 | +</div> |
252 | 257 | |
253 | 258 | |
254 | 259 | <h3 id=storage-sheds>Storage sheds</h3> |
@@ -472,7 +477,7 @@ is needed for <a href="https://github.com/whatwg/storage/issues/4">issue #4</a>
|
472 | 477 | <a href="https://privacycg.github.io/storage-access/">Storage Access API</a>. |
473 | 478 | |
474 | 479 | |
475 | | -<h3 id=storage-task-source>Storage task source</h2> |
| 480 | +<h3 id=storage-task-source>Storage task source</h3> |
476 | 481 | |
477 | 482 | <p>The <dfn export id=task-source>storage task source</dfn> is a <a for=/>task source</a> to be used |
478 | 483 | for all <a for=/>tasks</a> related to a <a>storage endpoint</a>. In particular those that relate to |
|