@@ -142,20 +142,22 @@ <h2>
142142 </ p >
143143 < dl >
144144 < dt >
145- The special value < dfn > "nothing"</ dfn > :
145+ The special value < dfn class ="export " data-dfn-for =
146+ "badge "> "nothing"</ dfn > :
146147 </ dt >
147148 < dd >
148149 Indicates that there is no badge currently [=badge/set=].
149150 </ dd >
150151 < dt >
151- The special value < dfn > "flag"</ dfn > :
152+ The special value < dfn class ="export " data-dfn-for =
153+ "badge "> "flag"</ dfn > :
152154 </ dt >
153155 < dd >
154156 Indicates that the badge is [=badge/set=], but contains no specific
155157 value.
156158 </ dd >
157159 < dt >
158- A < dfn > number</ dfn > value:
160+ A < dfn class =" export " data-dfn-for =" badge " > number</ dfn > value:
159161 </ dt >
160162 < dd >
161163 Indicates that the badge is [=badge/set=] to a numerical value
@@ -164,11 +166,12 @@ <h2>
164166 </ dl >
165167 < p >
166168 An [=installed web application=] has an associated [=badge=], which is
167- initialized to [="nothing"=].
169+ initialized to [=badge/ "nothing"=].
168170 </ p >
169171 < p >
170- The user agent MAY (re)[=set=] an application's badge to [="nothing"=]
171- at its discretion (for example, following system conventions).
172+ The user agent MAY (re)[=set=] an application's badge to
173+ [=badge/"nothing"=] at its discretion (for example, following system
174+ conventions).
172175 </ p >
173176 </ section >
174177 < section id ="presentation ">
@@ -190,37 +193,37 @@ <h2>
190193 "[=notifications=]" permission.
191194 </ p >
192195 < p >
193- When the [=badge=] is [=badge/set=] to [="flag"=], the [=user agent=]
194- or operating system SHOULD display an indicator with a non-specific
195- symbol (for example, a colored circle).
196+ When the [=badge=] is [=badge/set=] to [=badge/ "flag"=], the [=user
197+ agent=] or operating system SHOULD display an indicator with a
198+ non-specific symbol (for example, a colored circle).
196199 </ p >
197200 < p >
198- When a [=badge=]'s value is [=badge/set=] to [="nothing"=], the [=user
199- agent=] or operating system SHOULD < dfn data-dfn-for ="badge "
201+ When a [=badge=]'s value is [=badge/set=] to [=badge/ "nothing"=], the
202+ [=user agent=] or operating system SHOULD < dfn data-dfn-for ="badge "
200203 data-local-lt ="clearing|cleared "> clear</ dfn > the [=badge=] by no longer
201204 displaying it.
202205 </ p >
203206 < p >
204- When the [=badge=] is [=badge/set=] to a [=number=], the [=user agent=]
205- or operating system:
207+ When the [=badge=] is [=badge/set=] to a [=badge/ number=], the [=user
208+ agent=] or operating system:
206209 </ p >
207210 < ul >
208211 < li > SHOULD format and display the number according to the user's font
209212 and formatting preferences. For example, as a number in a circle on top
210213 of the application's icon on the home screen on a device.
211214 </ li >
212- < li > MAY simplify or degrade a badge's [=number=] [=badge/value=] in any
213- way that matches the platform's conventions for representing numbers in
214- a badge. For example, a platform might choose to display a badge with a
215- value of '100' as '99+'.
215+ < li > MAY simplify or degrade a badge's [=badge/ number=] [=badge/value=]
216+ in any way that matches the platform's conventions for representing
217+ numbers in a badge. For example, a platform might choose to display a
218+ badge with a value of '100' as '99+'.
216219 </ li >
217220 < li > SHOULD localize the number according to the user's locale
218221 preferences. For example, the [=badge/value=] '7' should be displayed
219222 as '7' in the locale 'en' (English) but as '٧' in 'ar' (Arabic).
220223 </ li >
221- < li > MAY treat a [=number=] [=badge/value=] as [="flag"=], or whatever
222- representation is most appropriate for the platform, if the platform
223- does not support displaying [=numbers=] in a [=badge=].
224+ < li > MAY treat a [=badge/ number=] [=badge/value=] as [=badge/ "flag"=],
225+ or whatever representation is most appropriate for the platform, if the
226+ platform does not support displaying [=badge/ numbers=] in a [=badge=].
224227 </ li >
225228 </ ul >
226229 </ section >
@@ -275,13 +278,13 @@ <h2>
275278 |contents| was not passed:
276279 </ dt >
277280 < dd >
278- [=badge/Set=] |badge| to [="flag"=].
281+ [=badge/Set=] |badge| to [=badge/ "flag"=].
279282 </ dd >
280283 < dt >
281284 |contents| is 0:
282285 </ dt >
283286 < dd >
284- [=badge/Set=] |badge| to [="nothing"=].
287+ [=badge/Set=] |badge| to [=badge/ "nothing"=].
285288 </ dd >
286289 < dt >
287290 |contents|:
@@ -364,13 +367,13 @@ <h2>
364367 |contents| is `true`:
365368 </ dt >
366369 < dd >
367- [=badge/Set=] |badge| to [="flag"=].
370+ [=badge/Set=] |badge| to [=badge/ "flag"=].
368371 </ dd >
369372 < dt >
370373 |contents| is `false` or 0:
371374 </ dt >
372375 < dd >
373- [=badge/Set=] |badge| to [="nothing"=].
376+ [=badge/Set=] |badge| to [=badge/ "nothing"=].
374377 </ dd >
375378 < dt >
376379 Otherwise:
0 commit comments