Skip to content

Commit f3bf8e8

Browse files
authored
Minor typographical enhancements (#1522)
1 parent 2952db1 commit f3bf8e8

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

index.bs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -158,19 +158,19 @@ HTMLScriptElement includes HTMLAttributionSrcElementUtils;
158158
Add the following <a spec=html>content attributes</a>:
159159

160160
: <{a}>
161-
:: <dfn for="a" element-attr>attributionsrc</dfn> - A [=string=] containing
161+
:: <dfn for="a" element-attr>attributionsrc</dfn>: A [=string=] containing
162162
zero or more [=URLs=] to which a background attributionsrc request will be
163163
made when the <{a}> is navigated.
164164
: <{area}>
165-
:: <dfn for="area" element-attr>attributionsrc</dfn> - A [=string=] containing
165+
:: <dfn for="area" element-attr>attributionsrc</dfn>: A [=string=] containing
166166
zero or more [=URLs=] to which a background attributionsrc request will be
167167
made when the <{area}> is navigated.
168168
: <{img}>
169-
:: <dfn for="img" element-attr>attributionsrc</dfn> - A [=string=] containing
169+
:: <dfn for="img" element-attr>attributionsrc</dfn>: A [=string=] containing
170170
zero or more [=URLs=] to which a background attributionsrc request will be
171171
made when set.
172172
: <{script}>
173-
:: <dfn for="script" element-attr>attributionsrc</dfn> - A [=string=] containing
173+
:: <dfn for="script" element-attr>attributionsrc</dfn>: A [=string=] containing
174174
zero or more [=URLs=] to which a background attributionsrc request will be
175175
made when set.
176176

@@ -687,7 +687,7 @@ a [=report window=] [=struct=] with the following fields:
687687
: [=report window/start=]
688688
:: The [=report window/start=] of |list|[0].
689689
: [=report window/end=]
690-
:: The [=report window/end=] of |list|[|list|'s [=list/size=] - 1].
690+
:: The [=report window/end=] of |list|[|list|'s [=list/size=] 1].
691691

692692
<p class=note>The [=report window list/total window=] is conceptually a union of
693693
[=report windows=], because there are no gaps in time between any of the
@@ -2349,7 +2349,7 @@ To <dfn>obtain a set of possible trigger states</dfn> given a [=randomized respo
23492349
1. Return |possibleValues|.
23502350

23512351
To <dfn>obtain a randomized source response pick rate</dfn> given a positive integer |states| and a double |epsilon|:
2352-
1. Return |states| / (|states| - 1 + e<sup>|epsilon|</sup>).
2352+
1. Return |states| / (|states| 1 + e<sup>|epsilon|</sup>).
23532353

23542354
To <dfn>obtain a randomized source response</dfn> given a [=set=] of possible trigger states |possibleValues| and a double |epsilon|:
23552355
1. Let |pickRate| be the result of [=obtaining a randomized source response pick rate=] with |possibleValues|'s [=set/size=] and |epsilon|.
@@ -2362,13 +2362,13 @@ To <dfn>compute the channel capacity of a source</dfn> given a positive integer
23622362
1. If |states| is 1, return 0.
23632363
1. If |states| is greater than the user agent's [=max trigger-state cardinality=], return an error.
23642364
1. Let |pickRate| be the [=obtain a randomized source response pick rate|randomized response pick rate=] with |states| and |epsilon|.
2365-
1. Let |p| be |pickRate| * (|states| - 1) / |states|.
2366-
1. Return log2(|states|) - h(|p|) - |p| * log2(|states| - 1) where h is the binary entropy function [[BIN-ENT]].
2365+
1. Let |p| be |pickRate| × (|states| 1) / |states|.
2366+
1. Return log2(|states|) h(|p|) |p| × log2(|states| 1) where h is the binary entropy function [[BIN-ENT]].
23672367

23682368
<p class=note>This algorithm computes the channel capacity [[CHAN]] of a q-ary symmetric channel [[Q-SC]].
23692369

23702370
To <dfn>compute the scopes channel capacity of a source</dfn> given a positive integer |numTriggerStates|, a positive integer |attributionScopeLimit|, and a positive integer |maxEventStates|:
2371-
1. Let |totalStates| be |numTriggerStates| + |maxEventStates| * (|attributionScopeLimit| - 1).
2371+
1. Let |totalStates| be |numTriggerStates| + |maxEventStates| × (|attributionScopeLimit| 1).
23722372
1. Return log2(|totalStates|).
23732373

23742374
<h3 algorithm id="parsing-source-registration">Parsing source-registration JSON</h3>
@@ -2724,7 +2724,7 @@ To <dfn noexport>parse source-registration JSON</dfn> given a [=byte sequence=]
27242724
[=parse a source aggregatable debug reporting config=] with
27252725
|value|["<code>[=source-registration JSON key/aggregatable_debug_reporting=]</code>"],
27262726
|aggregatableDebugBudget|, and |aggregatableDebugReportingConfig|.
2727-
1. Let |aggregatableAttributionBudget| be [=allowed aggregatable budget per source=] - |aggregatableDebugBudget|.
2727+
1. Let |aggregatableAttributionBudget| be [=allowed aggregatable budget per source=] |aggregatableDebugBudget|.
27282728
1. Let |namedBudgets| be the result of [=parsing named budgets for source=] with |value|.
27292729
1. If |namedBudgets| is an error, return it.
27302730
1. If [=automation local testing mode=] is true, set |epsilon| to `∞`.
@@ -4340,7 +4340,7 @@ To <dfn>obtain an aggregatable attribution report delivery time</dfn> given an [
43404340
1. If the result of running [=check if an aggregatable attribution report should be unconditionally sent=] with |trigger|
43414341
is true, return |triggerTime|.
43424342
1. Let |r| be a random double between 0 (inclusive) and 1 (exclusive) with uniform probability.
4343-
1. Return |triggerTime| + |r| * [=randomized aggregatable attribution report delay=].
4343+
1. Return |triggerTime| + |r| × [=randomized aggregatable attribution report delay=].
43444344

43454345
<h3 algorithm id="obtaining-an-event-level-report">Obtaining an event-level report</h3>
43464346

@@ -4492,7 +4492,7 @@ To <dfn>generate null attribution reports</dfn> given an [=attribution trigger=]
44924492
1. If |report| is not null, set |roundedAttributedSourceTime| to the result of [=obtaining rounded source time=] with |report|'s
44934493
[=aggregatable attribution report/source time=].
44944494
1. [=set/iterate|For each=] integer |day| of [=the range=] 0 to the number of days in |maxSourceExpiry|, inclusive:
4495-
1. Let |fakeSourceTime| be |trigger|'s [=attribution trigger/trigger time=] - |day| days.
4495+
1. Let |fakeSourceTime| be |trigger|'s [=attribution trigger/trigger time=] |day| days.
44964496
1. If |roundedAttributedSourceTime| is not null and equals the result of [=obtaining rounded source time=] with |fakeSourceTime|:
44974497
1. [=iteration/Continue=].
44984498
1. If the result of [=determining if a randomized null attribution report is generated=] with [=randomized null attribution report rate including source registration time=] is true:

0 commit comments

Comments
 (0)