859
859
[=URL/within scope=].
860
860
</ p >
861
861
< p >
862
- To < dfn > process the `id` member</ dfn > , given [=ordered map=] |json:JSON|,
863
- [=ordered map=] |manifest:ordered map|:
862
+ To < dfn > process the `id` member</ dfn > , given [=ordered map=]
863
+ |json:JSON|, [=ordered map=] |manifest:ordered map|:
864
864
</ p >
865
865
< ol class ="algorithm ">
866
866
< li > Set |manifest|["id"] to |manifest|["start_url"].
@@ -1329,7 +1329,7 @@ <h3>
1329
1329
algorithm.
1330
1330
</ li >
1331
1331
< li > Let [=document=]'s < dfn data-export ="" data-dfn-for ="Document ">
1332
- processed manifest</ dfn > be |manifest|.
1332
+ processed manifest</ dfn > be |manifest|.
1333
1333
</ li >
1334
1334
</ ol >
1335
1335
</ section >
@@ -1987,9 +1987,8 @@ <h3>
1987
1987
</ h3 >
1988
1988
< p >
1989
1989
When < a > shortcut item</ a > < var > shortcut</ var > having
1990
- < var > manifest</ var > is invoked, run the steps to
1991
- [=launch a web application=] with < var > manifest</ var > and
1992
- < var > shortcut.url</ var > .
1990
+ < var > manifest</ var > is invoked, run the steps to [=launch a web
1991
+ application=] with < var > manifest</ var > and < var > shortcut.url</ var > .
1993
1992
</ p >
1994
1993
</ section >
1995
1994
< section >
@@ -1998,7 +1997,7 @@ <h2>
1998
1997
</ h2 >
1999
1998
< p >
2000
1999
To < dfn > process a shortcut</ dfn > , given [=ordered map=] |item:ordered
2001
- map| and |scope:URL|,:
2000
+ map| and |scope:URL|,:
2002
2001
</ p >
2003
2002
< ol class ="algorithm ">
2004
2003
< li > Return failure if it's the case that:
@@ -2020,8 +2019,8 @@ <h2>
2020
2019
</ li >
2021
2020
< li > If |url| is failure, return failure.
2022
2021
</ li >
2023
- < li > If |url| is not [=manifest/within scope=] of |scope|,
2024
- return failure.
2022
+ < li > If |url| is not [=manifest/within scope=] of |scope|, return
2023
+ failure.
2025
2024
</ li >
2026
2025
< li > Let |shortcut:ordered map| be |ordered map| «[ "url" → |url|,
2027
2026
"name" → |item|["name"] ]».
@@ -2207,8 +2206,8 @@ <h2>
2207
2206
user agent an opportunity to apply the relevant values of the manifest,
2208
2207
possibly changing the < a > display mode</ a > and screen orientation of the
2209
2208
web application. Alternatively, and again as an example, the user agent
2210
- could < a > install</ a > the web application into a list of bookmarks within
2211
- the user agent itself.
2209
+ could < a > install</ a > the web application into a list of bookmarks
2210
+ within the user agent itself.
2212
2211
</ p >
2213
2212
< section >
2214
2213
< h3 >
@@ -2248,62 +2247,61 @@ <h3>
2248
2247
Launching a web application
2249
2248
</ h3 >
2250
2249
< p >
2251
- At the discretion of the operating system or user agent, run the steps
2252
- to [=launch a web application=] with a
2253
- [=Document/processed manifest=].
2250
+ At the discretion of the operating system or user agent, run the
2251
+ steps to [=launch a web application=] with a [=Document/processed
2252
+ manifest=].
2254
2253
</ p >
2255
2254
< p class ="note ">
2256
- This would typically take place when the user selects an [=installed=]
2257
- web app from an app launching UI surface e.g., a home screen, launcher
2258
- or start menu.
2255
+ This would typically take place when the user selects an
2256
+ [=installed=] web app from an app launching UI surface e.g., a home
2257
+ screen, launcher or start menu.
2259
2258
</ p >
2260
2259
< p >
2261
- The steps to
2262
- < dfn data-lt =" launching a web application" data-export ="" > launch a web
2263
- application </ dfn > is given by the following algorithm. The algorithm
2264
- takes a [=Document/processed manifest =] |manifest:processed manifest |,
2265
- an optional [=URL =] |target URL:URL|, an optional [=POST resource=]
2266
- |POST resource| and returns an [=application context=].
2260
+ The steps to < dfn data-lt =" launching a web application " data-export =
2261
+ "" > launch a web application</ dfn > is given by the following
2262
+ algorithm. The algorithm takes a [=Document/processed manifest=]
2263
+ |manifest:processed manifest|, an optional [=URL =] |target URL:URL |,
2264
+ an optional [=POST resource =] |POST resource| and returns an
2265
+ [=application context=].
2267
2266
</ p >
2268
2267
< p >
2269
2268
|target URL|, if given, MUST be [=manifest/within scope=] of
2270
2269
|manifest|.
2271
2270
</ p >
2272
2271
< p >
2273
- Other specifications MAY replace this algorithm's steps with their own
2274
- steps. This replacement will take effect for all invocations of
2272
+ Other specifications MAY replace this algorithm's steps with their
2273
+ own steps. This replacement will take effect for all invocations of
2275
2274
[=launch a web application=].
2276
2275
</ p >
2277
2276
< p class ="note ">
2278
- This algorithm is replaceable to allow an experimental
2279
- < a href ="https://github.com/WICG/web-app-launch "> launch_handler</ a >
2280
- manifest field to configure the behavior of all web application
2281
- launches. The replacement algorithm invokes [=create a new
2282
- application context=] by default but under certain conditions behaves
2283
- differently.
2277
+ This algorithm is replaceable to allow an experimental < a href =
2278
+ "https://github.com/WICG/web-app-launch "> launch_handler</ a > manifest
2279
+ field to configure the behavior of all web application launches. The
2280
+ replacement algorithm invokes [=create a new application context=] by
2281
+ default but under certain conditions behaves differently.
2284
2282
</ p >
2285
2283
< ol class ="algorithm ">
2286
2284
< li > Return the result of running the steps to [=create a new
2287
- application context=] passing |manifest|, |target URL| and
2288
- |POST resource|.
2285
+ application context=] passing |manifest|, |target URL| and |POST
2286
+ resource|.
2289
2287
</ li >
2290
2288
</ ol >
2291
2289
< p >
2292
- The steps to < dfn data-export =""> create a new application context
2293
- </ dfn > is given by the following algorithm. The algorithm takes a
2294
- [=Document/processed manifest=] |manifest:processed manifest|,
2295
- an optional [=URL=] |target URL:URL|, an optional [=POST resource=]
2296
- |POST resource| and returns an [=application context=].
2290
+ The steps to < dfn data-export =""> create a new application
2291
+ context </ dfn > is given by the following algorithm. The algorithm
2292
+ takes a [=Document/processed manifest=] |manifest:processed
2293
+ manifest|, an optional [=URL=] |target URL:URL|, an optional [=POST
2294
+ resource=] |POST resource| and returns an [=application context=].
2297
2295
</ p >
2298
2296
< ol class ="algorithm ">
2299
2297
< li > If |target URL| was not given, set |target URL| to [=start URL=].
2300
2298
</ li >
2301
2299
< li > Let |traversable| be the result of running the steps to [=create
2302
- a fresh top-level traversable=] with |target URL| and
2303
- |POST resource|.
2300
+ a fresh top-level traversable=] with |target URL| and |POST
2301
+ resource|.
2304
2302
</ li >
2305
- < li > Let |browsing context| be the |traversable|'s
2306
- < a data-cite = "html#nav-bc "> active browsing context</ a > .
2303
+ < li > Let |browsing context| be the |traversable|'s < a data-cite =
2304
+ "html#nav-bc "> active browsing context</ a > .
2307
2305
</ li >
2308
2306
< li > [=Apply=] |manifest| to |browsing context|.
2309
2307
</ li >
0 commit comments