@@ -137,25 +137,27 @@ <h2>
137137 of information, such as an unread count.
138138 </ p >
139139 < p >
140- A [=badge=] can have one of the following < dfn data-dfn-for =
141- "badge "> values</ dfn > :
140+ A [=badge=] can have one of the following < dfn class =" export "
141+ data-dfn-for = "badge "> values</ dfn > :
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 >
@@ -309,13 +312,13 @@ <h2>
309312 |contents| was not passed:
310313 </ dt >
311314 < dd >
312- [=badge/Set=] |badge| to [="flag"=].
315+ [=badge/Set=] |badge| to [=badge/ "flag"=].
313316 </ dd >
314317 < dt >
315318 |contents| is 0:
316319 </ dt >
317320 < dd >
318- [=badge/Set=] |badge| to [="nothing"=].
321+ [=badge/Set=] |badge| to [=badge/ "nothing"=].
319322 </ dd >
320323 < dt >
321324 |contents|:
0 commit comments