Skip to content

Commit 10c255d

Browse files
committed
Revert "Editorial: Move some members to App Information Note (#900)"
This reverts commit c154531.
1 parent c154531 commit 10c255d

File tree

2 files changed

+140
-27
lines changed

2 files changed

+140
-27
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,11 @@ instructions on running HTML5 tidy, see below.
4444
# Running HTML5 Tidy
4545

4646
Please make sure you have HTML5 tidy installed, instead of
47-
the the one that ships with *nix systems. You can confirm this by running:
47+
the the one that ships with *nix systems. You can comfirm this by running:
4848

4949
```bash
5050
tidy --version #HTML Tidy for HTML5 (experimental) for ...
5151
```
52-
5352
Once you have confirmed (make sure you have committed your changes before
5453
running tidy, as the changes are destructive ... in a good way:)):
5554

index.html

Lines changed: 139 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ <h3>
178178
"lang": "en",
179179
"dir": "ltr",
180180
"name": "Super Racer 3000",
181+
"description": "The ultimate futuristic racing game from the future!",
181182
"short_name": "Racer3K",
182183
"icons": [{
183184
"src": "icon/lowres.webp",
@@ -195,7 +196,16 @@ <h3>
195196
"display": "fullscreen",
196197
"orientation": "landscape",
197198
"theme_color": "aliceblue",
198-
"background_color": "red"
199+
"background_color": "red",
200+
"screenshots": [{
201+
"src": "screenshots/in-game-1x.jpg",
202+
"sizes": "640x480",
203+
"type": "image/jpeg"
204+
},{
205+
"src": "screenshots/in-game-2x.jpg",
206+
"sizes": "1280x920",
207+
"type": "image/jpeg"
208+
}]
199209
}
200210
</pre>
201211
</section>
@@ -897,10 +907,18 @@ <h3>
897907
of running <a>processing a color member</a> given
898908
<var>json</var>["<a>background_color</a>"].
899909
</li>
910+
<li>Set <var>manifest</var>["<a>categories</a>"] to the result of
911+
running <a>processing the <code>categories</code> member</a> given
912+
<var>json</var>["<a>categories</a>"].
913+
</li>
900914
<li>Set <var>manifest</var>["<a>icons</a>"] to the result of running
901915
<a>processing `ManifestImageResource` members</a> given
902916
<var>json</var>["<a>icons</a>"] and <var>manifest URL</var>.
903917
</li>
918+
<li>Set <var>manifest</var>["<a>screenshots</a>"] to the result of
919+
running <a>processing `ManifestImageResource` members</a> given <var>
920+
manifest</var>["<a>screenshots</a>"] and <var>manifest URL</var>.
921+
</li>
904922
<li>Set <var>manifest</var>["<a>related_applications</a>"] to the
905923
result of running <a>processing the <code>related_applications</code>
906924
member</a> given <var>json</var>["<a>related_applications</a>"].
@@ -1019,7 +1037,11 @@ <h2>
10191037
DOMString lang;
10201038
USVString name;
10211039
USVString short_name;
1040+
USVString description;
10221041
sequence&lt;ManifestImageResource&gt; icons;
1042+
sequence&lt;ManifestImageResource&gt; screenshots;
1043+
sequence&lt;USVString&gt; categories;
1044+
DOMString iarc_rating_id;
10231045
USVString start_url;
10241046
DisplayModeType display = "browser";
10251047
OrientationLockType orientation;
@@ -1202,6 +1224,15 @@ <h3>
12021224
the web application.
12031225
</p>
12041226
</section>
1227+
<section>
1228+
<h3>
1229+
<code title="">description</code> member
1230+
</h3>
1231+
<p>
1232+
The <dfn>description</dfn> member allows the developer to describe
1233+
the purpose of the web application.
1234+
</p>
1235+
</section>
12051236
<section>
12061237
<h3>
12071238
<code>scope</code> member
@@ -1596,6 +1627,112 @@ <h3>
15961627
"@media">prefers-color-scheme</a>.
15971628
</p>
15981629
</section>
1630+
<section>
1631+
<h3>
1632+
<code title="">categories</code> member
1633+
</h3>
1634+
<p>
1635+
The <dfn>categories</dfn> member describes the expected application
1636+
categories to which the web application belongs.
1637+
</p>
1638+
<p>
1639+
The <a>categories</a> member is only meant as a hint to catalogs or
1640+
stores listing web applications and it is expected that these will
1641+
make a best effort to find appropriate categories (or category) under
1642+
which to list the web application. Like search engines and meta
1643+
keywords, catalogs and stores are not required to honor this hint.
1644+
</p>
1645+
<p>
1646+
The steps for <dfn>processing the <code>categories</code>
1647+
member</dfn> are given by the following algorithm. The algorithm
1648+
takes a sequence&lt;<a>USVString</a>&gt; <var>categories</var> as an
1649+
argument. This algorithm returns an
1650+
<code>Array&lt;USVString&gt;</code>.
1651+
</p>
1652+
<ol>
1653+
<li>[=list/For each=] <var>category</var> of <var>categories</var>:
1654+
<ol>
1655+
<li>[=set/Replace=] <var>category</var> within
1656+
<var>categories</var> with <var>category</var>, <a>ascii
1657+
lowercased</a>.
1658+
</li>
1659+
</ol>
1660+
</li>
1661+
<li>Return <var>categories</var>.
1662+
</li>
1663+
</ol>
1664+
<p>
1665+
The categories <a>string</a> array is case insensitive and converted
1666+
to lower-case by following the processing algorithm. Thus,
1667+
<code>sports</code>, <code>Sports</code>, <code>SPORTS</code>, and
1668+
<code>SpOrTs</code> are all equivalent.
1669+
</p>
1670+
<p class="note">
1671+
Manifest authors are encouraged to use lower-case.
1672+
</p>
1673+
<p class="note">
1674+
This specification does not define the particular values for
1675+
<dfn>USVString</dfn>s for the <a>categories</a> member. However, the
1676+
working group maintains a <a href=
1677+
"https://github.com/w3c/manifest/wiki/Categories">list of known
1678+
values</a> in our wiki.
1679+
</p>
1680+
</section>
1681+
<section>
1682+
<h3>
1683+
<code title="">screenshots</code> member
1684+
</h3>
1685+
<p>
1686+
The <dfn>screenshots</dfn> member is an <a>array</a> of
1687+
{{ManifestImageResource}}s, representing the web application in
1688+
common usage scenarios.
1689+
</p>
1690+
</section>
1691+
<section>
1692+
<h3>
1693+
<code title="">iarc_rating_id</code> member
1694+
</h3>
1695+
<p>
1696+
The <dfn>iarc_rating_id</dfn> member is a <a>string</a> that
1697+
represents the <a href="https://www.globalratings.com/">International
1698+
Age Rating Coalition (IARC)</a> certification code of the web
1699+
application. It is intended to be used to determine which ages the
1700+
web application is appropriate for.
1701+
</p>
1702+
<p class="note">
1703+
An IARC certificate can be obtained via participating storefronts,
1704+
intended to be used for distributing the web app. The
1705+
<a>iarc_rating_id</a> member only takes a single certification code.
1706+
The same code can be shared across participating storefronts, as long
1707+
as the distributed product remains the same (i.e., doesn’t serve
1708+
totally different code paths depending on user agent sniffing and the
1709+
like) and the other storefronts support it.
1710+
</p>
1711+
<div class="informative">
1712+
<p>
1713+
The following shows a very simple <a>manifest</a> with the
1714+
<code>iarc_rating_id</code> member.
1715+
</p>
1716+
<pre class="example json" title="very simple manifest">
1717+
{
1718+
"name": "Donate App",
1719+
"description": "This app helps you donate to worthy causes.",
1720+
"iarc_rating_id": "e84b072d-71b3-4d3e-86ae-31a8ce4e53b7",
1721+
"icons": [{
1722+
"src": "images/icon.png",
1723+
"sizes": "192x192"
1724+
}]
1725+
}
1726+
</pre>
1727+
</div>
1728+
<p>
1729+
More information on the IARC can be found at: <a href=
1730+
"https://www.globalratings.com/how-iarc-works.aspx">How IARC
1731+
Works</a> and <a href=
1732+
"https://www.globalratings.com/for-developers.aspx">How developers
1733+
can get their games and apps rated with IARC</a>.
1734+
</p>
1735+
</section>
15991736
<section>
16001737
<h3>
16011738
<code>shortcuts</code> member
@@ -2651,7 +2788,7 @@ <h3>
26512788
consistent.
26522789
</p>
26532790
<p>
2654-
To allow the community to easily find extensions, please add your
2791+
To allow the community can easily find extensions, please add your
26552792
extensions to the <a href=
26562793
"https://github.com/w3c/manifest/wiki/Extensions-Registry">Extensions
26572794
Registry</a>.
@@ -2745,29 +2882,6 @@ <h2>
27452882
</dd>
27462883
</dl>
27472884
</section>
2748-
<section class="appendix">
2749-
<h2>
2750-
Application Information
2751-
</h2>
2752-
<p>
2753-
Several members of the Web App Manifest provide additional metadata
2754-
related to how the web application may be presented in the context of a
2755-
digital storefront, installation dialog, or other surfaces where this
2756-
web application may be marketed or distributed. In an effort to support
2757-
these use cases better, the following members have been moved into
2758-
{{WebAppManifestAppInfo}}:
2759-
</p>
2760-
<ul>
2761-
<li>{{WebAppManifestAppInfo/categories}}
2762-
</li>
2763-
<li>{{WebAppManifestAppInfo/description}}
2764-
</li>
2765-
<li>{{WebAppManifestAppInfo/iarc_rating_id}}
2766-
</li>
2767-
<li>{{WebAppManifestAppInfo/screenshots}}
2768-
</li>
2769-
</ul>
2770-
</section>
27712885
<section class="appendix">
27722886
<h2>
27732887
Relationship to HTML's <code>link</code> and <code>meta</code> elements

0 commit comments

Comments
 (0)