@@ -295,34 +295,33 @@ <h3>
295
295
< code > short_name</ code > ).
296
296
</ p >
297
297
</ section >
298
- < section >
298
+ < section data-link-for =" webappmanifest " >
299
299
< h3 >
300
300
Application's name
301
301
</ h3 >
302
302
< p >
303
303
The < dfn > application's name</ dfn > is derived from either the
304
- < a > < code > name</ code > member </ a > or < a > < code > short_name</ code >
305
- member</ a > (if either is present) - otherwise, it is generated by the
304
+ < a > < code > name</ code > </ a > member or < a > < code > short_name</ code > </ a >
305
+ member (if either is present) - otherwise, it is generated by the
306
306
user agent or provided by the end-user.
307
307
</ p >
308
308
< p >
309
309
When either member is missing from the manifest, a user agent MAY use
310
- the < a > < code > name</ code > member </ a > as a fallback for the
311
- < a > < code > short_name</ code > member </ a > or vice versa.
310
+ the < a > < code > name</ code > </ a > member as a fallback for the
311
+ < a > < code > short_name</ code > </ a > member or vice versa.
312
312
</ p >
313
313
< p >
314
- If the < a data-lt ="name member "> < code > name</ code > </ a > and < a data-lt =
315
- "short_name member "> < code > short_name</ code > </ a > members are
314
+ If the < a > < code > name</ code > </ a > and < a > < code > short_name</ code > </ a > members are
316
315
undefined, the user agent SHOULD assign a default name (e.g.,
317
316
"Untitled"). Alternatively, a user agent MAY allow the end-user to
318
317
input some text that can serve as the < a > application's name</ a > .
319
318
</ p >
320
319
< p >
321
- When both the < a data-lt =" name member " > < code > name</ code > </ a > and
322
- < a data-lt =" short_name member " > < code > short_name</ code > </ a > members
320
+ When both the < a > < code > name</ code > </ a > and
321
+ < a > < code > short_name</ code > </ a > members
323
322
are present, it is left up to implementations to decide which member
324
323
is best suited for the space available (e.g., the
325
- < a > < code > short_name</ code > member </ a > might be better suited for the
324
+ < a > < code > short_name</ code > </ a > member might be better suited for the
326
325
space available underneath an icon).
327
326
</ p >
328
327
</ section >
@@ -1592,17 +1591,26 @@ <h3>
1592
1591
< div class ="issue " data-number ="446 "> </ div >
1593
1592
</ section >
1594
1593
</ section >
1595
- < section >
1594
+ < section data-dfn-for =" webappmanifest " data-link-for =" webappmanifest " >
1596
1595
< h2 >
1597
1596
Manifest and its members
1598
1597
</ h2 >
1599
1598
< p >
1600
1599
A < dfn > manifest</ dfn > is a JSON document that contains startup
1601
1600
parameters and application defaults for when a web application is
1602
- launched. A manifest consists of a top-level < a > object </ a > that
1603
- contains zero or more members. Each of the members are defined below,
1604
- as well as how their values are processed.
1601
+ launched. A manifest consists of a top-level < dfn > WebAppManifest </ dfn >
1602
+ < a > object </ a > that contains zero or more members.
1603
+ Each of the members are defined below, as well as how their values are processed.
1605
1604
</ p >
1605
+ < pre class ="idl ">
1606
+ dictionary WebAppManifest {
1607
+ DirType? dir;
1608
+ DOMString? lang;
1609
+ DOMString? name;
1610
+ DOMString? short_name;
1611
+ DOMString? description;
1612
+ };
1613
+ </ pre >
1606
1614
< p >
1607
1615
Every manifest has an associated < dfn > manifest URL</ dfn > , which is the
1608
1616
[[!URL]] from which the < a > manifest</ a > was fetched.
@@ -1612,45 +1620,48 @@ <h3>
1612
1620
< code > dir</ code > member
1613
1621
</ h3 >
1614
1622
< p >
1615
- The < dfn > < code > dir</ code > member </ dfn > specifies the < dfn > base
1623
+ The < code > < dfn > dir</ dfn > </ code > member specifies the < dfn > base
1616
1624
direction</ dfn > for the < a > directionality-capable members</ a > of the
1617
1625
< a > manifest</ a > . The < code > dir</ code > member's value can be set to
1618
1626
one of the < a > text-direction values</ a > .
1619
1627
</ p >
1628
+ < pre class ="idl ">
1629
+ enum DirType { "ltr", "rtl", "auto" };
1630
+ </ pre >
1620
1631
< p >
1621
1632
The < dfn > directionality-capable members</ dfn > are:
1622
1633
</ p >
1623
1634
< ul >
1624
1635
< li >
1625
- < a > < code > description</ code > member </ a > .
1636
+ < a > < code > description</ code > </ a > member .
1626
1637
</ li >
1627
1638
< li >
1628
- < a > < code > name</ code > member </ a > .
1639
+ < a > < code > name</ code > </ a > member .
1629
1640
</ li >
1630
1641
< li >
1631
- < a > < code > short_name</ code > member </ a > .
1642
+ < a > < code > short_name</ code > </ a > member .
1632
1643
</ li >
1633
1644
</ ul >
1634
1645
< p >
1635
- The < dfn data-lt ="text-direction value "> text-direction values</ dfn >
1636
- are the following, implying that the value of the
1646
+ The < dfn data-lt ="text-direction value "> text-direction values</ dfn > defined by
1647
+ < dfn > DirType </ dfn > , are the following, implying that the value of the
1637
1648
< a > directionality-capable members</ a > is by default:
1638
1649
</ p >
1639
- < dl >
1650
+ < dl data-dfn-for =" dirtype " >
1640
1651
< dt >
1641
- < dfn data-lt =" direction ltr " > ltr</ dfn >
1652
+ < dfn > ltr</ dfn >
1642
1653
</ dt >
1643
1654
< dd >
1644
1655
left-to-right text.
1645
1656
</ dd >
1646
1657
< dt >
1647
- < dfn data-lt =" direction rtl " > rtl</ dfn >
1658
+ < dfn > rtl</ dfn >
1648
1659
</ dt >
1649
1660
< dd >
1650
1661
right-to-left text.
1651
1662
</ dd >
1652
1663
< dt >
1653
- < dfn data-lt =" direction auto " > auto</ dfn >
1664
+ < dfn > auto</ dfn >
1654
1665
</ dt >
1655
1666
< dd >
1656
1667
< a data-lt =
@@ -1663,7 +1674,7 @@ <h3>
1663
1674
end-user, the user agent MUST use the < a > base direction</ a > to
1664
1675
compute directional runs and layout or position text correctly in
1665
1676
text containing mixed-direction sequences [[!BIDI]]. When the < a > base
1666
- direction</ a > is "< a data-lt =" direction auto "> auto</ a > " the user
1677
+ direction</ a > is "< a data-link-for =" DirType "> auto</ a > " the user
1667
1678
agent MUST run the < a > steps to programmatically determine the
1668
1679
directionality of a member</ a > - and use the resulting
1669
1680
< a > text-direction value</ a > to assist in displaying the value of the
@@ -1729,7 +1740,7 @@ <h3>
1729
1740
< code > lang</ code > member
1730
1741
</ h3 >
1731
1742
< p >
1732
- The < dfn id =" member-lang " > < code > lang</ code > member </ dfn > is a
1743
+ The < code > < dfn > lang</ dfn > </ code > member is a
1733
1744
< a > language tag</ a > (string) that specifies the primary language for
1734
1745
the values of the manifest's < a > directionality-capable members</ a >
1735
1746
(as knowing the language can also help with directionality).
@@ -1794,7 +1805,7 @@ <h3>
1794
1805
< code title =""> name</ code > member
1795
1806
</ h3 >
1796
1807
< p >
1797
- The < dfn id =" member-name " > < code > name</ code > member </ dfn > is a
1808
+ The < code > < dfn > name</ dfn > </ code > member is a
1798
1809
< a > string</ a > that represents the name of the web application as it
1799
1810
is usually displayed to the user (e.g., amongst a list of other
1800
1811
applications, or as a label for an icon).
@@ -1828,7 +1839,7 @@ <h3>
1828
1839
< code title =""> short_name</ code > member
1829
1840
</ h3 >
1830
1841
< p >
1831
- The < dfn id =" member-short_name " > < code > short_name</ code > member </ dfn >
1842
+ The < dfn > < code > short_name</ code > </ dfn > member
1832
1843
is a < a > string</ a > that represents a short version of the name of the
1833
1844
web application. It is intended to be used where there is
1834
1845
insufficient space to display the full name of the web application.
@@ -1862,8 +1873,8 @@ <h3>
1862
1873
< code title =""> description</ code > member
1863
1874
</ h3 >
1864
1875
< p >
1865
- The < dfn id =" member-description " > < code > description</ code >
1866
- member</ dfn > allows the developer to describe the purpose of the web
1876
+ The < dfn > < code > description</ code > </ dfn >
1877
+ member allows the developer to describe the purpose of the web
1867
1878
application.
1868
1879
</ p >
1869
1880
< p >
@@ -4454,6 +4465,9 @@ <h2>
4454
4465
proprietary tags/metadata, if they are present in a document).
4455
4466
</ p >
4456
4467
</ section >
4468
+ < section id ="idl-index " class ="appendix ">
4469
+ <!-- All the Web IDL will magically appear here -->
4470
+ </ section >
4457
4471
< section class ="appendix ">
4458
4472
< h2 >
4459
4473
JSON Schema
0 commit comments